diff options
author | David Pursehouse <david.pursehouse@gmail.com> | 2019-05-26 17:47:08 +0900 |
---|---|---|
committer | David Pursehouse <david.pursehouse@gmail.com> | 2019-05-26 17:47:08 +0900 |
commit | 4c33f70d5a591f4572b32186b39de4344d8bfe65 (patch) | |
tree | 171bad49953bf5971431976d767a30279aaf9071 /tools | |
parent | a4f5fc1572341816c636dbe20662f0efbed7dbd4 (diff) | |
download | jgit-4c33f70d5a591f4572b32186b39de4344d8bfe65.tar.gz jgit-4c33f70d5a591f4572b32186b39de4344d8bfe65.zip |
Enable error-prone checks by default
Based on recent work by Dave Borowitz on the Gerrit project [1, 2].
The warnings/error configuration is unchanged, but now the checks are
enabled by default during the build rather than having to be manually
invoked.
[1] https://gerrit-review.googlesource.com/c/gerrit/+/225653
[2] https://gerrit-review.googlesource.com/c/gerrit/+/225714
Change-Id: I7f4849896af72de38880b13d64519cc93bb3d2a3
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/BUILD | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/BUILD b/tools/BUILD index 9025e0a6d3..b39ac4f904 100644 --- a/tools/BUILD +++ b/tools/BUILD @@ -14,8 +14,10 @@ default_java_toolchain( visibility = ["//visibility:public"], ) -# This EP warnings list borrowed from here: +# Error Prone errors enabled by default; see ../.bazelrc for how this is +# enabled. This warnings list is originally based on: # https://github.com/bazelbuild/BUILD_file_generator/blob/master/tools/bazel_defs/java.bzl +# However, feel free to add any additional errors. Thus far they have all been pretty useful. java_package_configuration( name = "error_prone", javacopts = [ |