App-target lint clean: the remaining five error spots (PostStore body, identifier names, long lines, PostStoreTests split) #147

Closed
opened 2026-11-03 11:36:23 +01:00 by AlexKucera · 0 comments
Owner

What to build

The repo contract says "SwiftFormat + SwiftLint must both stay clean", but five more error spots remain beyond PostsModel.swift (#146). All mechanical, zero behavior change — after this and #146, swiftlint is clean repo-wide on the app and test targets:

  • PostStore.swift: the PostStore enum body spans 354 against 350 — the same extension-move treatment as PostsModel's class body (a cohesive member group moves to a same-file or new-file extension; visibility widens private→internal only if the move crosses files). Note PostStore already carries documented same-file extensions — grow that pattern, don't invent a new one.
  • ProseListTextView.swift: six single-char locals (s, i, y, c) get real names.
  • ImageIngestTests.swift: one single-char local (i) gets a real name.
  • ProseList.swift (194-char line) and OutlineEditorView.swift (221-char line): wrap per house style.
  • PostStoreTests.swift: 1061 lines against 1000 — split at a natural suite boundary into a second file (house pattern: the MicropubTests → MicropubModelTests finish-audit split), keeping shared helpers internal to the original file.

Acceptance criteria

  • swiftlint lint Museion MuseionTests reports ZERO errors, and zero warnings on every touched file
  • swiftformat . clean
  • Build green; full MuseionTests suite green by xcresult executed count (573 at filing)
  • No behavior change anywhere (renames, wraps, and file moves only)
  • DOX pass on any file that gains or loses a documented contract (MuseionTests/AGENTS.md for the test split)

Blocked by

None (can start immediately — independent of #146, though landing both makes the repo-wide lint-clean claim true).

[Generated by AI]

## What to build The repo contract says "SwiftFormat + SwiftLint must both stay clean", but five more error spots remain beyond PostsModel.swift (#146). All mechanical, zero behavior change — after this and #146, `swiftlint` is clean repo-wide on the app and test targets: - `PostStore.swift`: the `PostStore` enum body spans 354 against 350 — the same extension-move treatment as PostsModel's class body (a cohesive member group moves to a same-file or new-file extension; visibility widens private→internal only if the move crosses files). Note PostStore already carries documented same-file extensions — grow that pattern, don't invent a new one. - `ProseListTextView.swift`: six single-char locals (s, i, y, c) get real names. - `ImageIngestTests.swift`: one single-char local (i) gets a real name. - `ProseList.swift` (194-char line) and `OutlineEditorView.swift` (221-char line): wrap per house style. - `PostStoreTests.swift`: 1061 lines against 1000 — split at a natural suite boundary into a second file (house pattern: the MicropubTests → MicropubModelTests finish-audit split), keeping shared helpers internal to the original file. ## Acceptance criteria - [ ] `swiftlint lint Museion MuseionTests` reports ZERO errors, and zero warnings on every touched file - [ ] `swiftformat .` clean - [ ] Build green; full MuseionTests suite green by xcresult executed count (573 at filing) - [ ] No behavior change anywhere (renames, wraps, and file moves only) - [ ] DOX pass on any file that gains or loses a documented contract (MuseionTests/AGENTS.md for the test split) ## Blocked by None (can start immediately — independent of #146, though landing both makes the repo-wide lint-clean claim true). [Generated by AI]
AlexKucera added the ready-for-agent label 2026-11-03 11:36:23 +01:00
Sign in to join this conversation.