Lint policy pass: tune .swiftlint.yml to the codebase #194
Notifications
Due Date
No due date set.
Blocks
#195 Clear every error-severity lint finding
AlexKucera/museion
#196 Fix the surviving lint warnings (app + tests + prototypes)
AlexKucera/museion
Reference: AlexKucera/museion#194
Reference in new issue
Block a user
What to build
swiftlint .stops flagging deliberate style. The repo carries 279 findings; most are style-policy noise, not defects. Decide the per-rule posture in.swiftlint.ymlwith a one-line rationale comment per disable (classis precedent — its config carries the same comment shape):identifier_name(short closure params/locals like tv/ns/lo/hi — not a signal),inclusive_language(themaster/masterRootprofile-root vocabulary is deliberate domain naming — user decision 2026-11-17, rename rejected),file_lengthandtype_body_length(deliberately large cohesive units),nesting(idiomatic nested CodingKeys/enums),optional_data_string_conversion(intentional lossy String(decoding:) for process/file output)spike/from linting entirely (throwaway SPM experiments, not built into any target — 129 findings, 59 of the 60 errors, die with the exclude)Acceptance criteria
.swiftlint.ymlspike/excluded; swiftlint no longer reports anything under it./scripts/full-test.sh(config change only — no Swift edits)Blocked by
None (can start immediately).
[Generated by AI]
Lint policy pass landed in
.swiftlint.yml(config + AGENTS.md learning refresh only — no Swift edits).Disabled, each with a one-line rationale comment in the config:
identifier_name,inclusive_language,file_length,type_body_length,nesting,optional_data_string_conversion(plus the pre-existingtrailing_comma).spike/excluded — swiftlint reports nothing under it (was 129 findings, 59 of the 60 baseline errors).Surviving inventory (actual, SwiftLint 0.65.1): 0 errors, 33 warnings
vs the ticket's estimate (~48 warnings, 1 error): the expected error was the
identifier_nameerror in MuseionTests — disabled by this policy, so 0 errors survive. The line_length / opening_brace / for_where estimates ran high (12 / 9 / 1 actual); all 12 line_length survivors exceed even the default 120-char threshold, so it's not a threshold artifact — the estimate was simply conservative.legacy_constructor(kept enabled per the ticket) adds 1 warning the estimate omitted.Verification:
swiftlint .exits clean (warnings only),swiftformat --lint .→ 0/141 files require formatting, full unit suite via./scripts/full-test.sh→ 692 executed / 692 passed / 0 failed.[Generated by AI]