This is an automated email from the ASF dual-hosted git repository.
snazy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git
The following commit(s) were added to refs/heads/main by this push:
new e0002b36 build-logic: exclude generated code from errorprone (#1035)
e0002b36 is described below
commit e0002b36198b8789592ba33d2304adc4150adbb6
Author: Robert Stupp <[email protected]>
AuthorDate: Tue Feb 25 05:37:56 2025 -0600
build-logic: exclude generated code from errorprone (#1035)
---
build-logic/src/main/kotlin/polaris-java.gradle.kts | 2 ++
1 file changed, 2 insertions(+)
diff --git a/build-logic/src/main/kotlin/polaris-java.gradle.kts
b/build-logic/src/main/kotlin/polaris-java.gradle.kts
index e5ff7cc5..e6024112 100644
--- a/build-logic/src/main/kotlin/polaris-java.gradle.kts
+++ b/build-logic/src/main/kotlin/polaris-java.gradle.kts
@@ -41,6 +41,8 @@ tasks.withType(JavaCompile::class.java).configureEach {
options.compilerArgs.addAll(listOf("-Xlint:unchecked", "-Xlint:deprecation"))
options.errorprone.disableAllWarnings = true
options.errorprone.disableWarningsInGeneratedCode = true
+ options.errorprone.excludedPaths =
+
".*/${project.layout.buildDirectory.get().asFile.relativeTo(projectDir)}/generated/.*"
options.errorprone.error(
"DefaultCharset",
"FallThrough",