Skip to content

Commit

Permalink
Provide an option for disabling errorprone for a smoother dev experie…
Browse files Browse the repository at this point in the history
…nce (#3380)

* Provide an option for disabling errorprone for a smoother dev experience

* add a warning if you have turned off errorprone
  • Loading branch information
jkwatson authored Jul 9, 2021
1 parent 41c7fbf commit f83b780
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,17 @@ plugins {

val enableNullaway: String? by project

val disableErrorProne = properties["disableErrorProne"]?.toString()?.toBoolean() ?: false

tasks {
withType<JavaCompile>().configureEach {
with(options) {
errorprone {
if (disableErrorProne) {
logger.warn("Errorprone has been disabled. Build may not result in a valid PR build.")
enabled = false
}

disableWarningsInGeneratedCode.set(true)
allDisabledChecksAsWarnings.set(true)

Expand Down

0 comments on commit f83b780

Please sign in to comment.