aboutsummaryrefslogtreecommitdiffhomepage
path: root/site/blog/_posts/2015-06-25-ErrorProne.md
blob: d79d87accbf57ae12409e15ac658b089553a4c11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
layout: posts
title: Checking your Java errors with Error Prone.
---

We recently open-sourced our support for [Error Prone](http://errorprone.info).
[Error Prone](http://errorprone.info) checks for common mistakes in Java code
that will not be caught by the compiler.

We turned [Error Prone](http://errorprone.info) on by default but you can easily
turn it off by using the Javac option `-XepDisableAllChecks`. To do so, simply
specify `--javacopt='XepDisableAllChecks` to the list of Bazel's options. You
can also tune the checks error-prone will perform by using the [`-Xep:`
flags](http://errorprone.info/docs/flags).

See the [documentation of Error Prone](http://errorprone.info/docs/installation) for more
on Error Prone.