superfluous_disable_command
overrides disable all
#2670
Closed
Description
With the following code...
// swiftlint:disable all
// swiftlint:disable some_rule
... where some_rule
isn't violated in the context that follows, I get a superfluous_disable_command
warning. This is probably not intentional, as the purpose of swiftlint:disable all
is to silence every possible warning, including superfluous_disable_command
warnings.
If my guess that this is a bug is right, I'd be happy to push a fix.
Environment
- SwiftLint 0.31.0 (Installed via Homebrew)
- Xcode 10.1