Skip to content
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

Add SwiftSyntax rule helpers #4126

Merged
merged 8 commits into from
Aug 26, 2022
Merged

Conversation

jpsim
Copy link
Collaborator

@jpsim jpsim commented Aug 23, 2022

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.

@SwiftLintBot
Copy link

SwiftLintBot commented Aug 23, 2022

1 Warning
⚠️ This PR may need tests.
12 Messages
📖 Linting Aerial with this PR took 1.14s vs 1.13s on master (0% slower)
📖 Linting Alamofire with this PR took 1.37s vs 1.37s on master (0% slower)
📖 Linting Firefox with this PR took 5.93s vs 5.92s on master (0% slower)
📖 Linting Kickstarter with this PR took 33.21s vs 33.22s on master (0% faster)
📖 Linting Moya with this PR took 0.66s vs 0.66s on master (0% slower)
📖 Linting Nimble with this PR took 0.59s vs 0.59s on master (0% slower)
📖 Linting Quick with this PR took 0.28s vs 0.28s on master (0% slower)
📖 Linting Realm with this PR took 12.68s vs 12.48s on master (1% slower)
📖 Linting SourceKitten with this PR took 0.48s vs 0.47s on master (2% slower)
📖 Linting Sourcery with this PR took 2.18s vs 2.17s on master (0% slower)
📖 Linting Swift with this PR took 4.13s vs 4.09s on master (0% slower)
📖 Linting WordPress with this PR took 10.05s vs 10.08s on master (0% faster)

Generated by 🚫 Danger

@jpsim jpsim changed the title Prototype SwiftSyntax rule conveniences Add SwiftSyntax rule conveniences Aug 23, 2022
@jpsim jpsim changed the title Add SwiftSyntax rule conveniences Add SwiftSyntax rule helpers Aug 23, 2022
@jpsim jpsim marked this pull request as ready for review August 24, 2022 15:25
@jpsim jpsim requested a review from SimplyDanny August 24, 2022 15:25
Copy link
Collaborator

@SimplyDanny SimplyDanny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and useful to me!

@jpsim jpsim force-pushed the prototype-swiftsyntax-rule-conveniences branch from 07023bf to 6c63a78 Compare August 26, 2022 14:21
@jpsim jpsim enabled auto-merge (squash) August 26, 2022 14:21
@jpsim jpsim merged commit 5a30991 into master Aug 26, 2022
@jpsim jpsim deleted the prototype-swiftsyntax-rule-conveniences branch August 26, 2022 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants