-
Notifications
You must be signed in to change notification settings - Fork 444
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
SwiftLint recommends a double run when fixing #784
Conversation
https://github.com/realm/SwiftLint#xcode recommends > If you wish to fix violations as well, your script could run `swiftlint --fix && swiftlint` instead of just `swiftlint`. This will mean that all correctable violations are fixed while ensuring warnings show up in your project for remaining violations. https://github.com/realm/SwiftLint#auto-correct > Standard linting is disabled while correcting because of the high likelihood of violations (or their offsets) being incorrect after modifying a file while applying corrections.
@cclauss Ping me when you are done with this PR. |
Please re-review. |
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.
If tests pass - LGTM!
.swiftlint.yml
Outdated
force_try: error | ||
# force warnings (disabled above) | ||
# force_cast: error | ||
# force_try: error |
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.
Do we need these commented out lines?
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.
Removed.
@JeneaVranceanu wrote:
Ready for review. |
https://github.com/realm/SwiftLint#xcode recommends
https://github.com/realm/SwiftLint#auto-correct
Summary of Changes
Fixes # (if applicable - add the number of issue this PR addresses)
Test Data or Screenshots
By submitting this pull request, you are confirming the following:
develop
branch.