-
Notifications
You must be signed in to change notification settings - Fork 39
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
It should be possible to change a severity level per rule #655
Comments
Thanks @vprudnikov; this is a nice idea. We'll have to assess which flag/config format works best, but technically this looks very doable 👍. (Before making a decision on the flag support we should perhaps assess to what extent repeated flags can be supported, as that may influence the design space.) |
thanks @Stephan202! I admit that my example is not that good, however, I hope it outlines the idea :) |
I am trying to disable all checks and selectively turn on Raster rules 1 at a time. So passing -XepDisableAllChecks takes care of the former. Now I need to enable say all NullRules https://error-prone.picnic.tech/refasterrules/NullRules/ |
Hey @jai-ramakrishnan! For this you'd add (The latter flag is a regex, so later you could e.g. do |
Thanks a bunch @Stephan202. I can get it working partially with the negate pattern. The combination of |
@jai-ramakrishnan it's not you, it's me 🤦. I wrote Thanks for trying Error Prone Support! |
That does the trick @Stephan202. Thanks @Stephan202 and @rickie for all your hard work and open sourcing the rules. |
Problem
I would like to make some suggestions required for my team by changing the default severity level for them.
Description of the proposed new feature
It would be nice to provide a compiler argument that changes the severity for one rule, for example:
-XepOpt:Refaster:StreamRules:StreamMapFirst:ERROR
The text was updated successfully, but these errors were encountered: