-
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
Add excluded_match_kinds
custom rule config parameter
#3336
Conversation
Generated by 🚫 Danger |
Codecov Report
@@ Coverage Diff @@
## master #3336 +/- ##
==========================================
+ Coverage 90.56% 90.58% +0.01%
==========================================
Files 416 416
Lines 20357 20406 +49
==========================================
+ Hits 18437 18485 +48
- Misses 1920 1921 +1
Continue to review full report at Codecov.
|
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.
Thanks for the PR! Will merge once CI passes.
This allows custom rules to define an
excluded_match_kinds
array instead of listing out all but one or a few of theSyntaxKind
s inmatch_kinds
. Rules that include bothmatch_kinds
andexcluded_match_kinds
will be invalid, since there's not an obvious way to resolve the two without an arbitrary priority between them.