Skip to content

.swift-format: Specify an exhaustive configuration #3117

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 8, 2025
Merged

Conversation

AnthonyLatsis
Copy link
Contributor

@AnthonyLatsis AnthonyLatsis commented Jun 29, 2025

Unexpectedly, an omitted rule tells swift-format to ignore it altogether rather than assume the default setting.

This change applies the default configuration, retaining current settings and disabling 3 default-enabled rules: DoNotUseSemicolons, NoAccessLevelOnExtensionDeclaration, and DontRepeatTypeInStaticProperties. The latter is disabled due to undesired effect:

warning: [DontRepeatTypeInStaticProperties] remove the suffix 'Paths' from the name of the variable 'envSearchPaths'

Unexpectedly, an omitted rule tells swift-format to ignore it altogether
rather than assume the default setting.

This change applies the default configuration, retaining current
settings and disabling 3 default-enabled rules: `DoNotUseSemicolons`,
`NoAccessLevelOnExtensionDeclaration`, and
`DontRepeatTypeInStaticProperties`. The latter is disabled due to
undesired effect:

```
warning: [DontRepeatTypeInStaticProperties] remove the suffix 'Paths' from the name of the variable 'envSearchPaths'
```
@AnthonyLatsis
Copy link
Contributor Author

@swift-ci please test

@AnthonyLatsis
Copy link
Contributor Author

@swift-ci please test macOS

@AnthonyLatsis AnthonyLatsis merged commit 9e40b40 into main Aug 8, 2025
104 of 107 checks passed
@AnthonyLatsis AnthonyLatsis deleted the jepa branch August 8, 2025 15:52
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