aboutsummaryrefslogtreecommitdiff
path: root/protobuf-lite
diff options
context:
space:
mode:
authorEric Anderson <ejona@google.com>2018-03-08 16:55:16 -0800
committerEric Anderson <ejona@google.com>2018-03-09 11:19:20 -0800
commit1fb72ef6c1df2734003c74e5c23f39cc38d81e91 (patch)
treefd1b408dd979693042aa6a587515d061678e8ac9 /protobuf-lite
parent7fd22080e9b1933f67c3110d2af1b39982e5d2dc (diff)
downloadgrpc-grpc-java-1fb72ef6c1df2734003c74e5c23f39cc38d81e91.tar.gz
Ignore proto-generated code for ErrorProne
Previously if protobuf-generated code triggered ErrorProne we'd have to disable the failing check for all code in that task. With -XepExcludedPaths we can disable the ErrorProne-checking just for protobuf. Note that we continue using ErrorProne on our generated code. Also note this only applies to ErrorProne checks; JDK checks still require task-level disabling.
Diffstat (limited to 'protobuf-lite')
-rw-r--r--protobuf-lite/build.gradle3
1 files changed, 1 insertions, 2 deletions
diff --git a/protobuf-lite/build.gradle b/protobuf-lite/build.gradle
index e7342be75..719910fa1 100644
--- a/protobuf-lite/build.gradle
+++ b/protobuf-lite/build.gradle
@@ -28,8 +28,7 @@ dependencies {
compileTestJava {
// Protobuf-generated Lite produces quite a few warnings.
options.compilerArgs += ["-Xlint:-rawtypes", "-Xlint:-unchecked", "-Xlint:-fallthrough",
- "-Xep:MissingOverride:OFF", "-Xep:ReferenceEquality:OFF", "-Xep:FallThrough:OFF",
- "-Xep:JavaLangClash:OFF" /* The Enum protobuf clashes */]
+ "-XepExcludedPaths:.*/build/generated/source/proto/.*"]
}
protobuf {