Fix the surviving lint warnings (app + tests + prototypes) #196

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

What to build

Every warning left after the policy pass (#194), fixed mechanically and honestly — pure lint debt, zero behavior change. Expected shape (~48 warnings):

  • 13 opening_brace — the #179 swiftformat-conflict shape: hoist predicate helpers (named, testable) rather than reformat; never disable the rule inline
  • ~21 line_length (141–175 chars) — wrap at natural break points
  • 5 cyclomatic_complexity + 4 for_where — concentrated in the prose presenter; extract guard clauses / convert single-if-in-for to where
  • 3 function_body_length, 1 orphaned_doc_comment, 1 function_parameter_count — local, mechanical

No new abstractions beyond the predicate hoists the #179 learning already prescribes.

Acceptance criteria

  • swiftlint lint --quiet reports zero violations repo-wide (warnings included)
  • swiftformat clean (0 files reformatted) AFTER the edits — swiftformat and the fixes must not fight
  • Full unit suite green via ./scripts/full-test.sh — behavior unchanged, same executed count

Blocked by

  • #194 (the policy pass defines the surviving set)

[Generated by AI]

## What to build Every warning left after the policy pass (#194), fixed mechanically and honestly — pure lint debt, zero behavior change. Expected shape (~48 warnings): - 13 `opening_brace` — the #179 swiftformat-conflict shape: hoist predicate helpers (named, testable) rather than reformat; never disable the rule inline - ~21 `line_length` (141–175 chars) — wrap at natural break points - 5 `cyclomatic_complexity` + 4 `for_where` — concentrated in the prose presenter; extract guard clauses / convert single-if-in-for to where - 3 `function_body_length`, 1 `orphaned_doc_comment`, 1 `function_parameter_count` — local, mechanical No new abstractions beyond the predicate hoists the #179 learning already prescribes. ## Acceptance criteria - [ ] `swiftlint lint --quiet` reports zero violations repo-wide (warnings included) - [ ] swiftformat clean (0 files reformatted) AFTER the edits — swiftformat and the fixes must not fight - [ ] Full unit suite green via `./scripts/full-test.sh` — behavior unchanged, same executed count ## Blocked by - #194 (the policy pass defines the surviving set) [Generated by AI]
AlexKucera added the ready-for-agent label 2026-11-17 13:40:08 +01:00
AlexKucera added a new dependency 2026-11-17 13:40:37 +01:00
Sign in to join this conversation.