Skip to content

Commit

Permalink
Add error-prone nullaway plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
davido committed Feb 3, 2018
1 parent f663c91 commit a99796d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
9 changes: 9 additions & 0 deletions BUILD
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
java_plugin(
name = "nullaway",
deps = [
"@nullaway//jar",
"@guava//jar",
],
)

java_library(
name = "printy_lib",
srcs = glob(["src/main/java/**/*.java"]),
deps = ["@guava//jar"],
plugins = [":nullaway"],
)

genrule(
Expand Down
5 changes: 5 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@ maven_jar(
artifact = "com.google.guava:guava:23.6-jre",
sha1 = "c0b638df79e7b2e1ed98f8d68ac62538a715ab1d",
)

maven_jar(
name = "nullaway",
artifact = "com.uber.nullaway:nullaway:0.3.2",
)
2 changes: 1 addition & 1 deletion tools/bazel.rc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
build --workspace_status_command=./tools/workspace-status.sh
build --workspace_status_command=./tools/workspace-status.sh --javacopt="-XepOpt:NullAway:AnnotatedPackages=org.gerritcon.mv2016 -Xep:NullAway:ERROR"

0 comments on commit a99796d

Please sign in to comment.