SwiftLint baseline — the lint gate fails only on NEW violations #191
Notifications
Due Date
No due date set.
Blocks
Depends on
#190 Port classis full-test.sh as the Museion verify rail + pre-push hook
AlexKucera/museion
Reference: AlexKucera/museion#191
Reference in new issue
Block a user
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
scripts/full-test.shBlocked by
[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
d7fd11cthe tree lints at 0 violations (bareswiftlint ., 130 files) andswiftformat .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]