Skip to content

superfluous_disable_command overrides disable all #2670

Closed
@fredpi

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

Metadata

Assignees

No one assigned

    Labels

    bugUnexpected and reproducible misbehavior.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions