Skip to content

Clean up the SwiftFormat configuration - #415

Merged
trasch merged 1 commit into
mainfrom
chore/swiftformat-config
Nov 17, 2026
Merged

trasch merged 1 commit into
mainfrom
chore/swiftformat-config

Conversation

@trasch

@trasch trasch commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

What

Aligns this repository's SwiftFormat configuration with the cleaned-up setup now used across the Swift projects.

  • Drops the options that only configured disabled rules (they had no effect).
  • Requires SwiftFormat 0.64.6 via --min-version.
  • Adds .swift-version so the Swift version is explicit rather than inferred.
  • Sets --test-case-name-format standard-identifiers, so test names are proper camelCase identifiers and no longer need backticks.
  • Removes preferFinalClasses, which would add final to public classes that library consumers subclass.
  • Tailors --exclude to this repository's build products and dependency checkouts.

Notes

The configuration was reduced from ~135 options to 83; the removed options were verified inert.

Existing formatting debt is left untouched — this changes the configuration only, so it converges as files are next edited.

Align the configuration with the shared SwiftFormat setup and bump the
CI-pinned SwiftFormat to 0.64.6. The lint gate only checks files a pull
request touches, so the existing debt is left untouched.
@trasch trasch self-assigned this Nov 17, 2026
@trasch
trasch merged commit c471118 into main Nov 17, 2026
6 checks passed
@trasch
trasch deleted the chore/swiftformat-config branch November 17, 2026 18:03
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.

1 participant