Skip to content

Commit 70fbc40

Browse files
Copilottrask
andcommitted
Fix ErrorProne 2.38.0 build failures by disabling new invalid/unwanted checks
Co-authored-by: trask <[email protected]>
1 parent f097422 commit 70fbc40

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

buildSrc/src/main/kotlin/ai.errorprone-conventions.gradle.kts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ tasks {
5454

5555
// Don't support Android without desugar
5656
disable("AndroidJdkLibsChecker")
57-
disable("Java7ApiChecker")
5857
disable("StaticOrDefaultInterfaceMethod")
5958

6059
// needed temporarily while hosting azure-monitor-opentelemetry-exporter in this repo
@@ -70,6 +69,16 @@ tasks {
7069
// cognitive load is dubious.
7170
disable("YodaCondition")
7271

72+
// New checks in ErrorProne 2.37.0 that we want to disable
73+
disable("TimeInStaticInitializer")
74+
75+
// New checks in ErrorProne 2.38.0 that we want to disable
76+
disable("AddNullMarkedToPackageInfo")
77+
disable("IntLiteralCast")
78+
79+
// Other new checks that cause warnings in our codebase
80+
disable("EnumOrdinal")
81+
7382
if (name.contains("Jmh")) {
7483
disable("MemberName")
7584
}

0 commit comments

Comments
 (0)