Skip to content

Commit 92906d9

Browse files
author
Vincent Potucek
committed
Add ConstantNaming
1 parent ce46d76 commit 92906d9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

gradle/plugins/common/src/main/kotlin/junitbuild.java-errorprone-conventions.gradle.kts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,19 @@ dependencies {
2727
tasks.withType<JavaCompile>().configureEach {
2828
options.errorprone {
2929
disableAllChecks = true // consider removal to avoid error prone error´s, following convention over configuration.
30+
allErrorsAsWarnings = true
3031
error(
31-
"ConstantNaming",
32+
//"ConstantNaming",
3233
"RedundantStringConversion",
3334
)
34-
if (!getenv().containsKey("CI") && getenv("IN_PLACE").toBoolean()) {
35+
// if (!getenv().containsKey("CI") && getenv("IN_PLACE").toBoolean()) {
3536
errorproneArgs.addAll(
3637
"-XepPatchLocation:IN_PLACE",
3738
"-XepPatchChecks:" +
3839
"ConstantNaming," +
3940
"RedundantStringConversion,"
4041
)
41-
}
42+
// }
4243
}
4344
}
4445

0 commit comments

Comments
 (0)