-
Notifications
You must be signed in to change notification settings - Fork 323
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
Replace several autocorrectable SwiftLint rules with SwiftFormat rules #287
Conversation
@@ -1,17 +1,12 @@ | |||
only_rules: | |||
- colon |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replaced by spaceAroundOperators
- operator_usage_whitespace | ||
- return_arrow_whitespace |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replaced by spaceAroundOperators
- fatal_error_message | ||
- implicitly_unwrapped_optional | ||
- legacy_cggeometry_functions | ||
- legacy_constant | ||
- legacy_constructor | ||
- legacy_nsgeometry_functions | ||
- operator_usage_whitespace | ||
- return_arrow_whitespace | ||
- trailing_newline |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replaced by lineBreakAtEndOfFile
- unused_optional_binding | ||
- vertical_whitespace |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replaced by consecutiveBlankLines
a117786
to
d7c99c0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
We are consolidating on using SwiftFormat for autocorrectable rules, and SwiftLint only for lint-only rules.
This PR replaces several autocorrectable SwiftLint rules with the corresponding SwiftFormat rule that implements the corresponding functionality.