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
val shouldDisableErrorProne = java.toolchain.implementation.orNull ==JvmImplementation.J9
20
-
if (name =="compileJava"&&!shouldDisableErrorProne) {
21
-
disable(
22
-
"AnnotateFormatMethod", // We don`t want to use ErrorProne's annotations.
23
-
"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.
24
-
"DoNotCallSuggester", // We don`t want to use ErrorProne's annotations.
25
-
"ImmutableEnumChecker", // We don`t want to use ErrorProne's annotations.
26
-
"InlineMeSuggester", // We don`t want to use ErrorProne's annotations.
27
-
"MissingSummary", // Produces a lot of findings that we consider to be false positives, for example for package-private classes and methods.
28
-
"StringSplitter", // We don`t want to use Guava.
29
-
"UnnecessaryLambda", // The findings of this check are subjective because a named constant can be more readable in many cases.
20
+
val enableErrorProne = java.toolchain.implementation.orNull !=J9
21
+
if (name =="compileJava"&& enableErrorProne) {
22
+
disableAllWarnings =true// considering this immense spam burden, remove this once to fix dedicated flaw. https://github.com/diffplug/spotless/pull/2766
23
+
disable( // We don`t want to use ErrorProne's annotations.
30
24
// picnic (https://error-prone.picnic.tech)
31
25
"ConstantNaming",
32
26
"DirectReturn", // We don`t want to use this: https://github.com/junit-team/junit-framework/pull/5006#discussion_r2403984446
0 commit comments