You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
errorproneArgs.add("-XepOpt:Refaster:NamePattern=^(?!.*Rules\\\$).*") // not complain; reduce after merge.
35
+
if (System.getenv("IN_PLACE")?.toBooleanStrictOrNull() ?:false) {
36
+
errorproneArgs.addAll(
37
+
"-XepPatchLocation:IN_PLACE", // somehow only certain picnic rules apply...
38
+
"-XepPatchChecks:"+
39
+
"AddNullMarkedToPackageInfo,"+
40
+
"AmbiguousJsonCreator,"+
41
+
"AssertJNullnessAssertion,"+
42
+
"AutowiredConstructor,"+
43
+
"CanonicalAnnotationSyntax,"+
44
+
"CanonicalClassNameUsage,"+
45
+
"ClassCastLambdaUsage,"+
46
+
"CollectorMutability,"+
47
+
"ConstantNaming,"+
48
+
"DeadException,"+
49
+
"DefaultCharset,"+
50
+
"EagerStringFormatting,"+
51
+
"EmptyMethod,"+
52
+
"EmptyMonoZip,"+
53
+
"ExplicitArgumentEnumeration,"+
54
+
"ExplicitEnumOrdering,"+
55
+
"FluxFlatMapUsage,"+
56
+
"FluxImplicitBlock,"+
57
+
"FormatStringConcatenation,"+
58
+
"IdentityConversion,"+
59
+
"ImmutablesSortedSetComparator,"+
60
+
"IsInstanceLambdaUsage,"+
61
+
"JUnitClassModifiers,"+
62
+
"JUnitMethodDeclaration,"+
63
+
"JUnitNullaryParameterizedTestDeclaration,"+
64
+
"JUnitValueSource,"+
65
+
"LexicographicalAnnotationAttributeListing,"+
66
+
"LexicographicalAnnotationListing,"+
67
+
"MissingOverride,"+
68
+
"MockitoMockClassReference,"+
69
+
"MockitoStubbing,"+
70
+
"MongoDBTextFilterUsage,"+
71
+
"NestedOptionals,"+
72
+
"NestedPublishers,"+
73
+
"NonEmptyMono,"+
74
+
"NonStaticImport,"+
75
+
"OptionalOrElseGet,"+
76
+
"PrimitiveComparison,"+
77
+
"RedundantStringConversion,"+
78
+
"RedundantStringEscape,"+
79
+
"RefasterAnyOfUsage,"+
80
+
"RequestMappingAnnotation,"+
81
+
"RequestParamType,"+
82
+
"Slf4jLogStatement,"+
83
+
"Slf4jLoggerDeclaration,"+
84
+
"SpringMvcAnnotation,"+
85
+
"StaticImport,"+
86
+
"StringJoin,"+
87
+
"TimeZoneUsage"
88
+
)
89
+
}
30
90
val shouldDisableErrorProne = java.toolchain.implementation.orNull ==JvmImplementation.J9
31
91
if (name =="compileJava"&&!shouldDisableErrorProne) {
32
92
disable(
33
-
34
-
// This check is opinionated wrt. which method names it considers unsuitable for import which includes
35
-
// a few of our own methods in `ReflectionUtils` etc.
36
-
"BadImport",
37
-
38
-
// The findings of this check are subjective because a named constant can be more readable in many cases
39
-
"UnnecessaryLambda",
40
-
41
-
// Resolving findings for these checks requires ErrorProne's annotations which we don't want to use
42
-
"AnnotateFormatMethod",
43
-
"DoNotCallSuggester",
44
-
"InlineMeSuggester",
45
-
"ImmutableEnumChecker",
46
-
47
-
// Resolving findings for this check requires using Guava which we don't want to use
48
-
"StringSplitter",
49
-
50
-
// Produces a lot of findings that we consider to be false positives, for example for package-private
51
-
// classes and methods
52
-
"MissingSummary",
93
+
"BadImport", // This check is opinionated wrt. which method names it considers unsuitable for import which includes a few of our own methods in `ReflectionUtils` etc.
94
+
"UnnecessaryLambda", // The findings of this check are subjective because a named constant can be more readable in many cases.
95
+
"AnnotateFormatMethod", // We don't want to use ErrorProne's annotations.
96
+
"DoNotCallSuggester", // TBD
97
+
"InlineMeSuggester", // TBD
98
+
"ImmutableEnumChecker", // TBD
99
+
"StringSplitter", // We don't want to use Guava.
100
+
"MissingSummary", // Produces a lot of findings that we consider to be false positives, for example for package-private classes and methods.
0 commit comments