* Add way to preprocess syntaxTree in SwiftSyntaxRule
* Update Source/SwiftLintFramework/Protocols/SwiftSyntaxRule.swift
Co-authored-by: Danny Mösch <danny.moesch@icloud.com>
* Update Source/SwiftLintFramework/Protocols/SwiftSyntaxRule.swift
Co-authored-by: Danny Mösch <danny.moesch@icloud.com>
Co-authored-by: Danny Mösch <danny.moesch@icloud.com>
This cuts down on the boilerplate involved in writing SwiftSyntax-based
rules. May not be significant right now since most rules are still built
with SourceKit, but as we migrate more rules moving forward, this should
make it easier for rule authors to write rules that behave performantly
and correctly.