Swiftlint: Disable multiple rules with one comment

Created on 27 Oct 2016  路  2Comments  路  Source: realm/SwiftLint

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
enhancement

Most helpful comment

Done in #897

All 2 comments

+1 agree with that

Done in #897

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mildm8nnered picture mildm8nnered  路  3Comments

BalestraPatrick picture BalestraPatrick  路  3Comments

larslockefeer picture larslockefeer  路  3Comments

muzamilhassan1987 picture muzamilhassan1987  路  3Comments

AliSoftware picture AliSoftware  路  3Comments