summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCole Faust <colefaust@google.com>2022-10-17 17:28:42 -0700
committerCole Faust <colefaust@google.com>2022-10-17 17:28:42 -0700
commit304f451014ca5bc0a4fccdb3e14e604bb4039fd0 (patch)
treeb1dba4ad8a18b82add4558bd9f6e338ea90b9ad2
parent0623569b06a01cf9b5b7f6d113aaa766f18f6b85 (diff)
downloaderror_prone-304f451014ca5bc0a4fccdb3e14e604bb4039fd0.tar.gz
Disable CanIgnoreReturnValueSuggester
Currently nothing in android aside from external/ projects use @CanIgnoreReturnValue, and the suggester is quite noisy, so disable it. Fixes: 253631950 Test: Presubmit Change-Id: I2d46c373ac9fc17108944e90543623bcddca6992
-rw-r--r--soong/error_prone.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/soong/error_prone.go b/soong/error_prone.go
index dccf61e..8e93578 100644
--- a/soong/error_prone.go
+++ b/soong/error_prone.go
@@ -202,6 +202,8 @@ func init() {
// This check increates the `platformprotos` module's build
// time by ~15 minutes
"-Xep:SameNameButDifferent:OFF",
+ // Noisy and requires projects to add a dependency on errorprone annotations
+ "-Xep:CanIgnoreReturnValueSuggester:OFF",
}
config.ErrorProneFlags = []string{