@@ -2,49 +2,48 @@ apply plugin: 'net.ltgt.errorprone'
22
33dependencies {
44 errorprone(' com.google.errorprone:error_prone_core:2.42.0' )
5- errorprone(' tech.picnic.error-prone-support:error-prone-contrib:0.26.0' )
5+ // errorprone('tech.picnic.error-prone-support:error-prone-contrib:0.26.0') // bug: https://github.com/google/error-prone/issues/5365
66}
77
88tasks. withType(JavaCompile ). configureEach {
99 options. errorprone {
10+ disableAllWarnings = true // https://github.com/diffplug/spotless/issues/2745
1011 disable( // consider fix, or reasoning.
1112 ' FunctionalInterfaceMethodChanged' ,
1213 ' JavaxInjectOnAbstractMethod' ,
1314 ' OverridesJavaxInjectableMethod' ,
1415 )
15- error(
16- ' AmbiguousJsonCreator' ,
17- ' AssertJNullnessAssertion' ,
18- ' AutowiredConstructor' ,
19- ' CanonicalAnnotationSyntax' ,
20- ' CollectorMutability' ,
21- ' ConstantNaming' ,
22- ' DirectReturn' ,
23- ' EmptyMethod' ,
24- ' ExplicitArgumentEnumeration' ,
25- ' ExplicitEnumOrdering' ,
26- ' IdentityConversion' ,
27- ' ImmutablesSortedSetComparator' ,
28- ' IsInstanceLambdaUsage' ,
29- ' MockitoMockClassReference' ,
30- ' MockitoStubbing' ,
31- ' NestedOptionals' ,
32- ' PrimitiveComparison' ,
33- ' RedundantStringConversion' ,
34- ' RedundantStringEscape' ,
35- ' ReturnValueIgnored' ,
36- ' SelfAssignment' ,
37- ' StringJoin' ,
38- ' StringJoining' ,
39- ' UnnecessarilyFullyQualified' ,
40- ' UnnecessaryLambda' ,
41- )
16+ // error(
17+ // 'AmbiguousJsonCreator',
18+ // 'AssertJNullnessAssertion',
19+ // 'AutowiredConstructor',
20+ // 'CanonicalAnnotationSyntax',
21+ // 'CollectorMutability',
22+ // 'ConstantNaming',
23+ // 'DirectReturn',
24+ // 'EmptyMethod',
25+ // 'ExplicitArgumentEnumeration',
26+ // 'ExplicitEnumOrdering',
27+ // 'IdentityConversion',
28+ // 'ImmutablesSortedSetComparator',
29+ // 'IsInstanceLambdaUsage',
30+ // 'MockitoMockClassReference',
31+ // 'MockitoStubbing',
32+ // 'NestedOptionals',
33+ // 'PrimitiveComparison',
34+ // 'RedundantStringConversion',
35+ // 'RedundantStringEscape',
36+ // 'ReturnValueIgnored',
37+ // 'SelfAssignment',
38+ // 'StringJoin',
39+ // 'StringJoining',
40+ // 'UnnecessarilyFullyQualified',
41+ // 'UnnecessaryLambda',
42+ // )
4243 // bug: this only happens when the file is dirty.
4344 // might be an up2date (caching) issue, as file is currently in corrupt state.
4445 // ForbidGradleInternal(import org.gradle.api.internal.project.ProjectInternal;)
45- errorproneArgs. add(' -XepExcludedPaths:' +
46- ' .*/SelfTest.java|' +
47- ' .*/GradleIntegrationHarness.java'
48- )
46+ // excludedPaths.add('.*/SelfTest.java');
47+ // excludedPaths.add('.*/GradleIntegrationHarness.java');
4948 }
5049}
0 commit comments