Skip to content

chore: enforce SwiftFormat configuration - #14

Merged
davdroman merged 11 commits into
mainfrom
chore/swiftformat-max-width
Sep 3, 2026
Merged

chore: enforce SwiftFormat configuration#14
davdroman merged 11 commits into
mainfrom
chore/swiftformat-max-width

Conversation

@davdroman

@davdroman davdroman commented Sep 2, 2026

Copy link
Copy Markdown
Owner
  • Configure SwiftFormat for 120-column wrapping with tabs counted as two columns.
  • Normalize multiline arguments, parameters, conditional assignments, function chains, and block comments.
  • Prevent Mise from falling back to same-named system binaries.
  • Use the current closure capture initializer on SwiftSyntax 601 and newer while retaining SwiftSyntax 600 support.
  • Run macro tests across each supported SwiftSyntax major in compatibility CI.
  • Apply and review the resulting formatter output.

@davdroman
davdroman force-pushed the chore/swiftformat-max-width branch from 32fed1a to a63cb72 Compare September 2, 2026 21:34
@davdroman davdroman changed the title chore: enforce 120-column SwiftFormat width chore: enforce SwiftFormat configuration Sep 2, 2026
Set the repository's formatting configuration to a 120-column maximum and apply the resulting formatter output.
Keep multiline thrown errors readable under the 120-column formatting policy.
Keep the optional hook signature and parameter type chain readable under the 120-column policy.
Use a deterministic tab width for SwiftFormat's line-length calculation without constraining editor display preferences.
Keep tab-width configuration immediately before the maximum line width it affects.
Require Mise to resolve declared project tools instead of falling back to same-named system binaries.
Configure SwiftFormat to avoid partial wrapping and normalize multiline assignments, chains, and comments. Keep return types intact and preserve readable documentation examples.
Keep short nested arguments and simple expressions on one line. Let source-controlled multiline strings handle over-width literal content without changing runtime values.
@davdroman
davdroman force-pushed the chore/swiftformat-max-width branch from acb107f to 6667fe7 Compare September 3, 2026 11:59
@davdroman
davdroman merged commit c7335e2 into main Sep 3, 2026
14 checks passed
@davdroman
davdroman deleted the chore/swiftformat-max-width branch September 3, 2026 12:25
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