Close out: repo-wide swiftlint green becomes the documented lint contract #197

Closed
opened 2026-11-17 13:40:25 +01:00 by AlexKucera · 0 comments
Owner

What to build

With #195 and #196 done, bare swiftlint . exits 0 on a clean tree. Make the docs and code comments honest about the new reality:

  • The pre-push hook's lint-gate comment block still justifies its push-scoped linting with "the tree carries pre-existing violations a whole-tree gate could never clear" — now false. Refresh the comment; the push-scoped GATE SEMANTICS STAY (settled design from #190's audit: the gate guards the push's own files), only the stale rationale text changes.
  • Prune the stale #190 project learning ("bare swiftlint . exits 2 on main — any lint GATE must scope to the pushed/changed Swift files") from the AGENTS.md Tooling & gates section — replace with the true statement or drop it.
  • Confirm the root AGENTS lint line (swiftformat . && swiftlint .) is now literally true.

Acceptance criteria

  • swiftlint . exits 0 on a clean tree; swiftformat . reformats nothing
  • Pre-push comment refreshed, gate behavior unchanged; ./scripts/test-full-test.sh still passes all 23 checks
  • AGENTS.md learning pruned/replaced; lint contract line accurate
  • Full unit suite green via ./scripts/full-test.sh

Blocked by

  • #195, #196 (both fix batches must land first)

[Generated by AI]

## What to build With #195 and #196 done, bare `swiftlint .` exits 0 on a clean tree. Make the docs and code comments honest about the new reality: - The pre-push hook's lint-gate comment block still justifies its push-scoped linting with "the tree carries pre-existing violations a whole-tree gate could never clear" — now false. Refresh the comment; the push-scoped GATE SEMANTICS STAY (settled design from #190's audit: the gate guards the push's own files), only the stale rationale text changes. - Prune the stale #190 project learning ("bare `swiftlint .` exits 2 on main — any lint GATE must scope to the pushed/changed Swift files") from the AGENTS.md Tooling & gates section — replace with the true statement or drop it. - Confirm the root AGENTS lint line (`swiftformat . && swiftlint .`) is now literally true. ## Acceptance criteria - [ ] `swiftlint .` exits 0 on a clean tree; `swiftformat .` reformats nothing - [ ] Pre-push comment refreshed, gate behavior unchanged; `./scripts/test-full-test.sh` still passes all 23 checks - [ ] AGENTS.md learning pruned/replaced; lint contract line accurate - [ ] Full unit suite green via `./scripts/full-test.sh` ## Blocked by - #195, #196 (both fix batches must land first) [Generated by AI]
AlexKucera added the ready-for-agent label 2026-11-17 13:40:25 +01:00
AlexKucera added a new dependency 2026-11-17 13:40:37 +01:00
AlexKucera added a new dependency 2026-11-17 13:40:38 +01:00
Sign in to join this conversation.