-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configure expression folding by argument of @SwiftSyntaxRule macro #5255
Conversation
|
||
func preprocess(file: SwiftLintFile) -> SourceFileSyntax? { | ||
file.foldedSyntaxTree | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might be able to find a solution for this explicit implementation as well. Configurations need to be passed to the visitor somehow automatically.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's done with #5275.
Here's an example of your CHANGELOG entry: * Configure expression folding by argument of @SwiftSyntaxRule macro.
[SimplyDanny](https://github.com/SimplyDanny)
[#issue_number](https://github.com/realm/SwiftLint/issues/issue_number) note: There are two invisible spaces after the entry's text. Generated by 🚫 Danger |
ae6a1bf
to
0addcda
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is nicer, thanks!
No description provided.