Correction

public struct Correction : Equatable, Sendable

A value describing a SwiftLint violation that was corrected.

  • The name of the rule that was corrected.

    Declaration

    Swift

    public let ruleName: String
  • The path to the file that was corrected.

    Declaration

    Swift

    public let filePath: String?
  • The number of corrections that were made.

    Declaration

    Swift

    public let numberOfCorrections: Int
  • The console-printable description for this correction.

    Declaration

    Swift

    public var consoleDescription: String { get }
  • Memberwise initializer.

    Declaration

    Swift

    public init(ruleName: String, filePath: String?, numberOfCorrections: Int)

    Parameters

    ruleName

    The name of the rule that was corrected.

    filePath

    The path to the file that was corrected.

    numberOfCorrections

    The number of corrections that were made.