SwiftSyntaxCorrectableRule
public protocol SwiftSyntaxCorrectableRule : CorrectableRule, SwiftSyntaxRule
A SwiftLint CorrectableRule that performs its corrections using a SwiftSyntax SyntaxRewriter.
-
makeRewriter(file:Default implementation) Produce a
ViolationsSyntaxRewriterfor the given file.Default Implementation
Declaration
Swift
func makeRewriter(file: SwiftLintFile) -> ViolationsSyntaxRewriter<ConfigurationType>?Parameters
fileThe file for which to produce the rewriter.
Return Value
A
ViolationsSyntaxRewriterfor the given file. May benilin which case the rule visitor’s collectedviolationCorrectionswill be used. -
correct(file:Extension method) Declaration
Swift
func correct(file: SwiftLintFile) -> Int
View on GitHub
Install in Dash