Skip to content
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

Disable multiple rules with one comment #861

Closed
AndrewSB opened this issue Oct 27, 2016 · 2 comments
Closed

Disable multiple rules with one comment #861

AndrewSB opened this issue Oct 27, 2016 · 2 comments
Labels
enhancement Ideas for improvements of existing features and rules.

Comments

@AndrewSB
Copy link

AndrewSB commented Oct 27, 2016

I think it would be cool to be able to put

//swiftlint:disable:next variable_name trailing_whitespace

and have it disable both of those rules for the next line. Currently, to achieve something similar Im doing:

//swiftlint:disable variable_name
<offending line of swift code> //swiftlint:disable:this trailing_whitespace
@norio-nomura norio-nomura added the enhancement Ideas for improvements of existing features and rules. label Nov 3, 2016
@innocarpe
Copy link

+1 agree with that

@jpsim
Copy link
Collaborator

jpsim commented Nov 25, 2016

Done in #897

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Ideas for improvements of existing features and rules.
Projects
None yet
Development

No branches or pull requests

4 participants