Skip to content

Commit e0002b3

Browse files
authored
build-logic: exclude generated code from errorprone (#1035)
1 parent 839bc25 commit e0002b3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build-logic/src/main/kotlin/polaris-java.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ tasks.withType(JavaCompile::class.java).configureEach {
4141
options.compilerArgs.addAll(listOf("-Xlint:unchecked", "-Xlint:deprecation"))
4242
options.errorprone.disableAllWarnings = true
4343
options.errorprone.disableWarningsInGeneratedCode = true
44+
options.errorprone.excludedPaths =
45+
".*/${project.layout.buildDirectory.get().asFile.relativeTo(projectDir)}/generated/.*"
4446
options.errorprone.error(
4547
"DefaultCharset",
4648
"FallThrough",

0 commit comments

Comments
 (0)