FINERACT-822 enable VariableNameSameAsType warning

This commit is contained in:
percyashu
2020-06-02 21:34:12 +01:00
parent bdb979e8ce
commit f685eb7a68
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",