Disable SystemOut errorprone check when running locally (#3579)

This commit is contained in:
Trask Stalnaker 2021-07-15 00:12:03 -07:00 committed by GitHub
parent 136b8aa22c
commit f02130f3e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -8,7 +8,8 @@ dependencies {
errorprone("com.google.errorprone:error_prone_core")
}
val disableErrorProne = gradle.startParameter.projectProperties.get("disableErrorProne")?.toBoolean() ?: false
val disableErrorProne = gradle.startParameter.projectProperties.get("disableErrorProne")?.toBoolean()
?: false
tasks {
withType<JavaCompile>().configureEach {
@ -20,6 +21,10 @@ tasks {
excludedPaths.set(".*/build/generated/.*")
if (System.getenv("CI") == null) {
disable("SystemOut")
}
// Doesn't work well with Java 8
disable("FutureReturnValueIgnored")