Correction
public struct Correction : Equatable, Sendable
A value describing a SwiftLint violation that was corrected.
-
The description of the rule for which this correction was applied.
Declaration
Swift
public let ruleDescription: RuleDescription
-
The location of the original violation that was corrected.
Declaration
Swift
public let location: Location
-
The console-printable description for this correction.
Declaration
Swift
public var consoleDescription: String { get }
-
Memberwise initializer.
Declaration
Swift
public init(ruleDescription: RuleDescription, location: Location)
Parameters
ruleDescription
The description of the rule for which this correction was applied.
location
The location of the original violation that was corrected.