-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Add a command to disable a rule for a single line #222
Comments
Why not just allow putting it at the end of the line, like rubocop does? |
so |
Yeah. Not necessarily saying it's better, and it might clash with the line length rule |
+1 for the suggestion about putting it at the end of the line. Perhaps an abbreviated syntax to mitigate line length issues, such as |
+1 for this suggestion |
Done in #292. |
For example:
Although I'm not convinced on the naming. Maybe
// swiftlint:disable:X
whereX
is an integer number of lines for which to disable the rule?It would make it more convenient to temporarily disable rules for occasional violations.
The text was updated successfully, but these errors were encountered: