mirror of https://github.com/grpc/grpc-java.git
Disable ErrorProne's MutableConstantField check (#11283)
It is simultaneously overly zealous and doesn't notice basic cases. As noticed in #11281.
This commit is contained in:
parent
5322414505
commit
a4ef77174d
12
build.gradle
12
build.gradle
|
@ -253,12 +253,24 @@ subprojects {
|
|||
options.errorprone.check("JavaUtilDate", CheckSeverity.OFF)
|
||||
// The warning fails to provide a source location
|
||||
options.errorprone.check("MissingSummary", CheckSeverity.OFF)
|
||||
|
||||
// This check is in libs.errorprone.corejava8 but has been removed
|
||||
// in later versions. It isn't smart enough to realize the field is
|
||||
// actually immutable. And it also doesn't complain about arrays
|
||||
// that are actually mutable.
|
||||
options.errorprone.check("MutableConstantField", CheckSeverity.OFF)
|
||||
}
|
||||
tasks.named("compileTestJava").configure {
|
||||
// LinkedList doesn't hurt much in tests and has lots of usages
|
||||
options.errorprone.check("JdkObsolete", CheckSeverity.OFF)
|
||||
options.errorprone.check("PreferJavaTimeOverload", CheckSeverity.OFF)
|
||||
options.errorprone.check("JavaUtilDate", CheckSeverity.OFF)
|
||||
|
||||
// This check is in libs.errorprone.corejava8 but has been removed
|
||||
// in later versions. It isn't smart enough to realize the field is
|
||||
// actually immutable. And it also doesn't complain about arrays
|
||||
// that are actually mutable.
|
||||
options.errorprone.check("MutableConstantField", CheckSeverity.OFF)
|
||||
}
|
||||
|
||||
plugins.withId("ru.vyarus.animalsniffer") {
|
||||
|
|
Loading…
Reference in New Issue