RuleIdentifier

public enum RuleIdentifier : Hashable, ExpressibleByStringLiteral, Comparable

An identifier representing a SwiftLint rule, or all rules.

Values

  • all

    Special identifier that should be treated as referring to ‘all’ SwiftLint rules. One helpful usecase is in disabling all SwiftLint rules in a given file by adding a // swiftlint:disable all comment at the top of the file.

    Declaration

    Swift

    case all
  • Represents a single SwiftLint rule with the specified identifier.

    Declaration

    Swift

    case single(identifier: String)

Properties

Initializers

  • Creates a RuleIdentifier by its string representation.

    Declaration

    Swift

    public init(_ value: String)

    Parameters

    value

    The string representation.

ExpressibleByStringLiteral Conformance

Comparable Conformance