# Changelog

## Score

- CAI 53 → 53 (+0.1)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.

## Lenses

- Code Health 90 → 82 (-8.2)
- Architecture 88 → 96 (+8.5)
- Maturity 51 → 59 (+8.3)
- Readiness 43 → 40 (-3.4)
- Security 57 → 57 (+0.0)

## Resolved (76)

- Concentrated knowledge decay
- Duplicated block (10 lines × 2) (Sources/_SwiftFormatTestSupport/DiagnosingTestCase.swift)
- Duplicated block (11 lines × 3) (Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift)
- Duplicated block (15 lines × 2) (Sources/SwiftFormat/Rules/ReturnVoidInsteadOfEmptyTuple.swift)
- Duplicated block (25 lines × 2) (Sources/_SwiftFormatTestSupport/DiagnosingTestCase.swift)
- Duplicated block (6 lines × 2) (Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift)
- Duplicated block (7 lines × 2) (Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift)
- Duplicated block (7 lines × 3) (Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift)
- Duplicated block (8–10 lines × 5) (Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift)
- Low cohesion: CommentMovingRewriter (LCOM4 4) (Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift)
- Members sharing a duplicated core (5 members, 50+ identical tokens) (Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift)
- MethodTooLong: OrderedImports.orderImports (Sources/SwiftFormat/Rules/OrderedImports.swift)
- Most significant orphaned file (Sources/SwiftFormat/PrettyPrint/PrettyPrint.swift)
- Most significant orphaned file (Sources/SwiftFormat/PrettyPrint/WhitespaceLinter.swift)
- No ADRs found
- Off-boarding risk: anonymized user #1
- OrderedImports.orderImports (cognitive 37) (Sources/SwiftFormat/Rules/OrderedImports.swift)
- OrderedImports.orderImports (cyclomatic 28) (Sources/SwiftFormat/Rules/OrderedImports.swift)
- Orphaned file (Package.swift)
- Orphaned file (Plugins/FormatPlugin/plugin.swift)
- …and 56 more

## New (129)

- ClassTooLong: Comment (Sources/SwiftFormat/PrettyPrint/Comment.swift)
- ClassTooLong: OverlongLineReflower (Sources/SwiftFormat/PrettyPrint/Comment.swift)
- Comment.exceedsMaxLineLength (cognitive 40) (Sources/SwiftFormat/PrettyPrint/Comment.swift)
- Comment.exceedsMaxLineLength (cyclomatic 20) (Sources/SwiftFormat/PrettyPrint/Comment.swift)
- Comment.pragmaLineIndices (cognitive 25) (Sources/SwiftFormat/PrettyPrint/Comment.swift)
- Comment.printReflowedBlockComment (cognitive 93) (Sources/SwiftFormat/PrettyPrint/Comment.swift)
- Comment.printReflowedBlockComment (cyclomatic 58) (Sources/SwiftFormat/PrettyPrint/Comment.swift)
- Comment.printReflowedLineComment (cognitive 27) (Sources/SwiftFormat/PrettyPrint/Comment.swift)
- Comment.printReflowedLineComment (cyclomatic 19) (Sources/SwiftFormat/PrettyPrint/Comment.swift)
- Comment.reflowBlockBodyLines (cognitive 20) (Sources/SwiftFormat/PrettyPrint/Comment.swift)
- Comment.reflowBlockBodyLines (cyclomatic 16) (Sources/SwiftFormat/PrettyPrint/Comment.swift)
- Duplicated block (11 lines × 3) (Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift)
- Duplicated block (16 lines × 2) (Sources/SwiftFormat/Rules/ReturnVoidInsteadOfEmptyTuple.swift)
- Duplicated block (43–44 lines × 2) (Sources/_SwiftFormatTestSupport/DiagnosingTestCase.swift)
- Duplicated block (6 lines × 2) (Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift)
- Duplicated block (7 lines × 2) (Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift)
- Duplicated block (8 lines × 2) (Sources/SwiftFormat/PrettyPrint/Comment.swift)
- Duplicated block (8 lines × 3) (Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift)
- Duplicated block (8–10 lines × 5) (Sources/SwiftFormat/PrettyPrint/TokenStreamCreator.swift)
- Edited copies of one member (3 members, 10+ corresponding lines) (Sources/SwiftFormat/Rules/NoParensAroundConditions.swift)
- …and 109 more

## Changes since last survey

- 15 commits — 9 feature/other, 6 fixes

## By area

- Sources/SwiftFormat — 12 commits
- Tests/SwiftFormatTests — 2 commits
- (repo) — 1 commit

## Notable commits

- fix: Add back comment reflowing (revert #1327). (#1328)
- fix: Fix multiline string literal handling with partial selections and whitespace-only linting. (#1335)
- fix: Fix selection boundary handling in TokenStreamCreator and PrettyPrintBuffer (#1337)
- fix: Fix trailing comma handling at the end of a line-range selection (#1332)
- fix: Merge pull request #1327 from tshortli/revert-reflow-comments
- fix: Revert "Add configurable Markdown-aware comment reflowing (`reflowComments`) (#1324)"
- change: Add configurable Markdown-aware comment reflowing (`reflowComments`) (#1324)
- change: Apply SyntaxFormatRules consistently across format and lint with selections. (#1333)
- change: Disable formatting after trailing comments at the end of a selection (#1334)
- change: Don't treat `!=` as a sentence terminator in doc comment summaries (#1305)
- change: Format and lint blank lines when selections start or end on blank lines (#1338)
- change: Handle CRLF line endings in multiline string literal segments (#1339)
- change: Handle CRLF line endings when formatting and linting selections (#1336)
- change: Reflow over-length comments with clang-format-style forward carry. (#1330)
- change: Support line and offset selections when linting (#1326)
