Skip to content

Fix SwiftLint findings and adopt company SwiftFormat config - #69

Merged
jmarek41 merged 2 commits into
mainfrom
fix/swiftlint-findings
Sep 7, 2026
Merged

jmarek41 merged 2 commits into
mainfrom
fix/swiftlint-findings

Conversation

@jmarek41

@jmarek41 jmarek41 commented Sep 4, 2026 •

Copy link
Copy Markdown
Member
  • Fix the two findings from the repo's own .swiftlint.yml: access modifier moved from public extension ConfigKey to the declaration, and the force unwrap in DataCache.merging replaced with ?? item (equivalent, the dictionary is built from newItems; covered by the "duplicate IDs, last wins" test).
  • Add .swiftformat from iOS-project-template and apply it to Sources and Tests. Mostly indentation inside #if blocks and redundant self; the only public signature changes are unused parameter names becoming _. Templates are excluded because the formatter alters the //___FILEHEADER___ placeholder.
  • Explicit self kept in AttributedStringProtocol.stylize(with:), where attributes are dynamic members.

Verified: swiftlint and swiftformat --lint report zero issues, and the test suite passes (15 tests) on Xcode 27.

jmarek41 and others added 2 commits September 4, 2026 10:04
Move the access modifier from the extension to the declaration and
replace the force unwrap in the merge loop with a fallback to the item
itself, which is equivalent since the dictionary is built from newItems.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Copy .swiftformat from iOS-project-template so the library follows the
same style as generated projects. Swift version pinned to 6.1 to match
Package.swift; Templates excluded because SwiftFormat would alter the
//___FILEHEADER___ placeholder and the templates are formatted
separately.

Keep explicit self in AttributedStringProtocol.stylize(with:), where the
attributes are dynamic members and redundantSelf breaks compilation.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@jmarek41
jmarek41 requested a review from ssestak September 4, 2026 08:09
@jmarek41
jmarek41 enabled auto-merge September 4, 2026 08:11
@jmarek41
jmarek41 merged commit 8363828 into main Sep 7, 2026
1 check passed
@jmarek41
jmarek41 deleted the fix/swiftlint-findings branch September 7, 2026 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants