ViolationSeverity

public enum ViolationSeverity : String, Comparable, Codable

The magnitude of a StyleViolation.

  • Non-fatal. If using SwiftLint as an Xcode build phase, Xcode will mark the build as having succeeded.

    Declaration

    Swift

    case warning
  • Fatal. If using SwiftLint as an Xcode build phase, Xcode will mark the build as having failed.

    Declaration

    Swift

    case error

Comparable

  • Declaration

    Swift

    public static func < (lhs: ViolationSeverity, rhs: ViolationSeverity) -> Bool