Repository navigation
fix(macos): put the legacy credential prepare arguments one per line - #208590
Conversation
#208315 left three arguments on two lines, which SwiftLint's multiline_arguments rule rejects in the macOS Swift lint job.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. |
|
Codex review: passed. What this changesThis PR places each legacy credential preparation argument on its own line. Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR is a minimal, correct repair for an enabled SwiftLint rule violation that remains on current main; no actionable defects were found. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherMac app startup passes identity and configuration paths to the bundled credential preparation owner; this change affects only the Swift source layout. flowchart LR
A[Mac app startup] --> B[Credential admission]
B --> C[Legacy identity preparation]
C --> D[Bundled Doctor]
D --> B
Technical reviewBest possible solution: Land the focused argument-layout correction while preserving the existing credential recovery implementation. Do we have a high-confidence way to reproduce the issue? Current main contains the mixed argument layout prohibited by its enabled multiline_arguments rule, matching the diagnostic and before/after lint results reported in the PR. Is this the best way to solve the issue? Splitting the existing arguments is the smallest complete fix and requires no runtime, test, or configuration changes. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c0dd31e033eb. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +1. Total +1 across 1 file. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 29, 2026, 3:52 PM ET / 20:52 UTC. |
…penclaw#208590) ## Problem `macos-swift (tests)` is red on scheduled main (run 46300823025) in the Swift lint step: ``` apps/macos/Sources/OpenClaw/ClientCredentialStartup.swift:19:37: error: Arguments should be either on the same line, or one per line (multiline_arguments) ``` openclaw#208315 added a `self.prepare(...)` call with two arguments on one line and the third on the next. That is lint formatting only; the behavior is correct. ## Fix Put the three arguments one per line. No behavior change. ## Evidence - `./scripts/lint-swift.sh macos` with `GITHUB_ACTIONS=true` (the CI limit mode), SwiftLint 0.65.1: main fails with exit 2 and the error above; with this change it passes (exit 0, only the existing advisory `file_length` warning on `OnboardingAISetup.swift`). ## Merge danger Two-way door: whitespace-only Swift change, a revert fully undoes it. Blast radius: one call site. Co-authored-by: Ayaan Zaidi <[email protected]>
Problem
macos-swift (tests)is red on scheduled main (run 46300823025) in the Swift lint step:#208315 added a
self.prepare(...)call with two arguments on one line and the third on the next. That is lint formatting only; the behavior is correct.Fix
Put the three arguments one per line. No behavior change.
Evidence
./scripts/lint-swift.sh macoswithGITHUB_ACTIONS=true(the CI limit mode), SwiftLint 0.65.1: main fails with exit 2 and the error above; with this change it passes (exit 0, only the existing advisoryfile_lengthwarning onOnboardingAISetup.swift).Merge danger
Two-way door: whitespace-only Swift change, a revert fully undoes it. Blast radius: one call site.