google / google/error-prone

Any simple way to completely disable messages from plugin checks at default `SUGGESTION` level?

Open
#5,387 11 comments 2 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
7.2k
Forks
820
Avg merge
5h 9m
Merged PRs (30d)
50

Description

See https://github.com/uber/NullAway/issues/1363. We included a new `RequireExplicitNullMarking` check in NullAway 0.12.13 at `SUGGESTION` level. It's matches get reported as `NOTE`s since it's at `SUGGESTION`, so they still show up in the console for a Gradle build by default (I imagine their printing is build-system dependent). Is there any easy way to provide this check but have it as completely off by default, with no printed messages? I think I can hack something using `VisitorState.severityMap()` to just return `Description.NO_MATCH` when the check is at `SUGGESTION` but it'd be nice to have a way to completely disable the check. Thanks!

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.