Skip to content

Clean up the SwiftFormat configuration - #122

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, bump the CI-pinned
SwiftFormat to 0.64.6, and reformat the test suite so the lint gate passes.
@trasch
trasch merged commit 9d6d428 into main Nov 17, 2026
5 checks passed
@trasch
trasch deleted the chore/swiftformat-config branch November 17, 2026 18:04
@trasch trasch self-assigned this Nov 17, 2026
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