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
ruleNameThe name of the rule that was corrected.
filePathThe path to the file that was corrected.
numberOfCorrectionsThe number of corrections that were made.
View on GitHub
Install in Dash