-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
Refactor code to fix SwiftLint warnings #196
Conversation
Generated by 🚫 Danger Swift against 3370189 |
} | ||
|
||
return violations | ||
} | ||
|
||
private static func lintAll(directory: String?, | ||
arguments: inout [String], |
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.
Why do you need arguments to be inout
?
You can make arguments
a var inside the function, given you don't need the updated value back
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.
You are absolutely right. Thank you for spotting this Xcode "extract method" relic. :)
can you please fix or add a swiftlint:disable to |
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.
💯
Thanks for the PR @ChaosCoder. This PR has been shipped in v1.4.0 - CHANGELOG. |
This PR is a follow-up to #195. This makes the code more readable, fixes swiftlint warnings introduced by #195 and reverts some whitespace changes #195 introduced.
There should be no changes in behaviour.