google / google/error-prone

Enable/disable patterns by category

Open
#488 5 comments 3 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.