Repository navigation
Conversation
Here's an example of your CHANGELOG entry: * [Don't Merge] Migrate FallthroughRule to SwiftSyntax.
[jpsim](https://github.com/jpsim)
[#issue_number](https://github.com/realm/SwiftLint/issues/issue_number)note: There are two invisible spaces after the entry's text. Generated by 🚫 Danger |
0c0078d to
fe112d6
Compare
fe112d6 to
ed0a7a1
Compare
32cecf5 to
61066c4
Compare
|
@jpsim What do you think, should we consider adding a SwiftSyntax based base rule type to the project now that Swift 5 will be released soon (I'm assuming that the byte tree deserialization will be part of the new release of SwiftSyntax) and start refactoring the first rules to it? Or do you have other ideas on how we can improve performance and correctness long term? (I know it's not the fastest yet, but I'm assuming performance will improve over time.) |
IIRC this won't be a part of 5.0 |
|
This issue has been automatically marked as stale because it has not had any recent activity. Please comment to prevent this issue from being closed. Thank you for your contributions! |

This is a follow-up to #2476 but using SourceKitten's syntaxTree request instead of invoking the swiftc process for each file.
Early results are promising but it's still significantly slower than the current non-SwiftSyntax implementation:
Lots of time is being spent in JSON decoding, so SwiftSyntax's upcoming byte tree deserializer should help bridge the remaining performance gap.