google / google/error-prone

Option to mark warnings as errors

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

Description

I'd love an option to mark error prone warnings as errors so that even warnings won't get ignored.

While it is possible to do the following:

``` groovy
tasks.withType(JavaCompile) {
options.compilerArgs += [ '-Werror' ]
}
```

it does not really suffice since all warnings are then marked as errors. Another option would be for every error prone rule to increase the severity though this will get impossible to maintain.

Maybe it could be something as simple as `-Xep:WarningsAsErrors`.

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.