fix: use consistent SwiftLint rules for local CLI checks - #724
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
PR SummaryLow Risk Overview Root Reviewed by Cursor Bugbot for commit 407161a. Bugbot is set up for automated code reviews on this repo. Configure here. |
|
Codex review: needs maintainer review before merge. Reviewed September 12, 2026, 8:49 PM ET / September 13, 2026, 00:49 UTC. ClawSweeper reviewWhat this changesBoth local SwiftLint entry points inherit shared rule definitions while retaining their separate scan paths. Merge readiness✅ Ready for maintainer review The change remains useful: current main and v4.3.4 retain divergent CLI-local rules. No actionable patch defect was found, and this collaborator-authored PR is protected from automated closure. Priority: P3 Review scores
Verification
How this fits togetherSwiftLint checks Peekaboo’s Swift source for coding-rule violations. Root and CLI-local configurations select files and rules; CI inherits the root configuration with additional existing overrides. flowchart TD
A[Swift source files] --> B[Root local checks]
A --> C[CLI local checks]
D[Shared rule policy] --> B
D --> C
B --> E[CI configuration overrides]
B --> F[Lint diagnostics]
C --> F
E --> F
Before mergeNone. Agent review detailsSecurityNone. Review metricsNone. Technical reviewBest possible solution: Maintain one shared local lint policy, separate scan scopes, and the existing explicit CI exceptions. Do we have a high-confidence way to reproduce the issue? Not applicable to a runtime bug: source inspection directly confirms the separate local policies, and the PR reports executable lint probes exercising enforcement and scan isolation. Is this the best way to solve the issue? Yes. Sharing the existing root rules through a parent without scan paths removes duplication while preserving each local entry point’s scope and CI overrides. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4338bc31e6cd. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
CLI-local SwiftLint pinned an obsolete tool version and disabled checks that the root CI configuration enforces. Both entry points now inherit the same unchanged rule policy from a path-free configuration. Their scan scopes remain separate, because SwiftLint merges parent include paths.
Validation: isolated Codex review found no actionable P0–P2 findings. Root and CLI-local lint pass with SwiftLint 0.65.1. Live executable probes inserted a 160-statement function: CLI-local lint reported it when it was inside CLI, ignored the same probe in Core, and root lint reported the Core violation. All temporary probe files were removed. No runtime behavior or public contract changes.