File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed
conventions/src/main/kotlin Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -18,20 +18,16 @@ nullaway {
1818
1919tasks {
2020 withType<JavaCompile >().configureEach {
21- if (name.contains(" test" , ignoreCase = true )) {
22- // For test compilation tasks, disable errorprone entirely to avoid nullaway issues
23- options.errorprone {
24- isEnabled.set(false )
25- }
26- } else {
27- options.errorprone.nullaway {
28- severity.set(CheckSeverity .ERROR )
29- }
30- }
3121 options.errorprone.nullaway {
22+ if (name.contains(" test" , ignoreCase = true )) {
23+ disable()
24+ } else {
25+ error()
26+ }
3227 customInitializerAnnotations.add(" org.openjdk.jmh.annotations.Setup" )
3328 excludedFieldAnnotations.add(" org.mockito.Mock" )
3429 excludedFieldAnnotations.add(" org.mockito.InjectMocks" )
3530 }
3631 }
3732}
33+
You can’t perform that action at this time.
0 commit comments