SwiftLint baseline — the lint gate fails only on NEW violations #191

Closed
opened 2026-11-16 18:15:34 +01:00 by AlexKucera · 1 comment
Owner

What to build

The repo carries 279 standing swiftlint violations; sessions verify "no new violations" by hand-counted parity against that number (five of the last ten session logs recite the ritual). Commit a SwiftLint baseline file and wire the lint half of the verify rail and the pre-push hook to it, so the gate fails only on violations NOT in the baseline — parity math leaves the session logs for good. Include the one-command regeneration procedure; the baseline may only ever shrink.

Acceptance criteria

  • Baseline file committed; regeneration is one documented command
  • A NEW violation in any file fails the gate; a pre-existing (baselined) one does not
  • Wired into the verify rail's gate step and the pre-push lint gate from #190
  • Regenerating on main after a fix run drops entries and never adds (verified by regen + diff)
  • swiftformat + swiftlint clean; full unit suite green via scripts/full-test.sh

Blocked by

  • #190 (verify rail — the wiring rides its gate step and hook)

[Generated by AI]

## What to build The repo carries 279 standing swiftlint violations; sessions verify "no new violations" by hand-counted parity against that number (five of the last ten session logs recite the ritual). Commit a SwiftLint baseline file and wire the lint half of the verify rail and the pre-push hook to it, so the gate fails only on violations NOT in the baseline — parity math leaves the session logs for good. Include the one-command regeneration procedure; the baseline may only ever shrink. ## Acceptance criteria - [ ] Baseline file committed; regeneration is one documented command - [ ] A NEW violation in any file fails the gate; a pre-existing (baselined) one does not - [ ] Wired into the verify rail's gate step and the pre-push lint gate from #190 - [ ] Regenerating on main after a fix run drops entries and never adds (verified by regen + diff) - [ ] swiftformat + swiftlint clean; full unit suite green via `scripts/full-test.sh` ## Blocked by - #190 (verify rail — the wiring rides its gate step and hook) [Generated by AI]
AlexKucera added the ready-for-agent label 2026-11-16 18:15:49 +01:00
Author
Owner

Closing as superseded — the premise died on 2026-11-17.

Filed against 279 standing violations (2026-11-16). The #194–#197 arc eliminated every one instead: #194 set the deliberate-style policy, #195/#196 cleared each surviving finding, and #197 made the docs state the contract. As of d7fd11c the tree lints at 0 violations (bare swiftlint ., 130 files) and swiftformat . reformats nothing.

The ticket's goal — gate fails only on NEW violations, no more hand-counted parity in session logs — is already achieved, strictly stronger: every gate (repo-wide and the #190 push-scoped hook) now fails on ANY violation because nothing is standing.

A committed baseline would be an empty file plus wiring to maintain, with an active downside: the day anyone regenerates it, new violations would be silently exempted — the 'baseline may only shrink' discipline is meaningless at zero. If standing violations ever accumulate again deliberately (e.g. a soft-migration period), reopen and the ticket's plan is still sound.

[Generated by AI]

Closing as superseded — the premise died on 2026-11-17. Filed against 279 standing violations (2026-11-16). The #194–#197 arc eliminated every one instead: #194 set the deliberate-style policy, #195/#196 cleared each surviving finding, and #197 made the docs state the contract. As of d7fd11c the tree lints at **0 violations** (bare `swiftlint .`, 130 files) and `swiftformat .` reformats nothing. The ticket's goal — gate fails only on NEW violations, no more hand-counted parity in session logs — is already achieved, strictly stronger: every gate (repo-wide and the #190 push-scoped hook) now fails on ANY violation because nothing is standing. A committed baseline would be an empty file plus wiring to maintain, with an active downside: the day anyone regenerates it, new violations would be silently exempted — the 'baseline may only shrink' discipline is meaningless at zero. If standing violations ever accumulate again deliberately (e.g. a soft-migration period), reopen and the ticket's plan is still sound. [Generated by AI]
Sign in to join this conversation.