Merge pull request #972 from percyashu/errorprone_variableNameSameAsType

FINERACT-822 enable variableNameSameAsType warning
This commit is contained in:
Michael Vorburger ⛑️
2020-06-03 22:13:56 +02:00
committed by GitHub
6 changed files with 19 additions and 17 deletions
+5 -3
View File
@@ -303,8 +303,8 @@ tasks.withType(JavaCompile) {
options.errorprone {
disableWarningsInGeneratedCode = true
//Todo Remove necessary checks from this list
disable("UnusedVariable",
"VariableNameSameAsType",
disable(
"UnusedVariable",
"InconsistentCapitalization",
"UnnecessaryParentheses",
"ClassCanBeStatic",
@@ -333,10 +333,12 @@ tasks.withType(JavaCompile) {
"OperatorPrecedence"
)
//TODO gradually enable these checks
error( "DefaultCharset",
error(
"DefaultCharset",
"RemoveUnusedImports",
"WaitNotInLoop",
"ThreeLetterTimeZoneID",
"VariableNameSameAsType",
// "ReturnMissingNullable",
// "InconsistentOverloads",
// "MethodCanBeStatic",