SwiftSyntaxCorrectableRule
public protocol SwiftSyntaxCorrectableRule : CorrectableRule, SwiftSyntaxRule
A SwiftLint CorrectableRule that performs its corrections using a SwiftSyntax SyntaxRewriter.
-
Produce a
ViolationsSyntaxRewriterfor the given file.Declaration
Swift
func makeRewriter(file: SwiftLintFile) -> ViolationsSyntaxRewriter?Parameters
fileThe file for which to produce the rewriter.
Return Value
A
ViolationsSyntaxRewriterfor the given file. -
correct(file:Extension method) Declaration
Swift
func correct(file: SwiftLintFile) -> [Correction]
View on GitHub
Install in Dash
SwiftSyntaxCorrectableRule Protocol Reference