blob: d61a5502fa4984e0d9df5e773be31c387c1272c4 [file] [log] [blame] [view]
cushon58dc6b92017-07-06 17:04:27 -04001---
2layout: posts
3title: Checking your Java errors with Error Prone.
4---
5
Googler24e14092018-05-04 16:06:27 -07006We recently open-sourced our support for [Error Prone](https://errorprone.info).
7[Error Prone](https://errorprone.info) checks for common mistakes in Java code
cushon58dc6b92017-07-06 17:04:27 -04008that will not be caught by the compiler.
9
Googler24e14092018-05-04 16:06:27 -070010We turned [Error Prone](https://errorprone.info) on by default but you can easily
cushon58dc6b92017-07-06 17:04:27 -040011turn it off by using the Javac option `-XepDisableAllChecks`. To do so, simply
12specify `--javacopt='XepDisableAllChecks` to the list of Bazel's options. You
13can also tune the checks error-prone will perform by using the [`-Xep:`
Googler24e14092018-05-04 16:06:27 -070014flags](https://errorprone.info/docs/flags).
cushon58dc6b92017-07-06 17:04:27 -040015
Googler24e14092018-05-04 16:06:27 -070016See the [documentation of Error Prone](https://errorprone.info/docs/installation) for more
cushon58dc6b92017-07-06 17:04:27 -040017on Error Prone.