Enable/disable patterns by category
Open
- Dominant language
- Java
- Stars
- 7.2k
- Forks
- 820
- Avg merge
- 5h 9m
- Merged PRs (30d)
- 50
Description
With Error Prone 2.0.15 and `-XepAllDisabledChecksAsWarnings`, the Android-specific `StaticOrDefaultInterfaceMethod` bug pattern is enabled. For a non-Android code base one can of course easily disable the pattern again with `-Xep:StaticOrDefaultInterfaceMethod:OFF`. But it did make me wonder: is there a flag to enable or disable all bug patterns in a given category?
I checked the [documentation](http://errorprone.info/docs/flags) and the source code, but it seems there currently isn't. I think this would be a good feature to have. As the aforementioned bug pattern shows, Android-specific recommendations may be at odds with Java 8 SE best practises.
Contributor guide
Assessment
This issue has not been assessed yet.