FINERACT-822 Enable CompareToZero check

This commit is contained in:
percyashu
2020-06-01 12:43:49 +02:00
committed by Michael Vorburger ⛑️
parent e295bef743
commit aed3e41ca4
29 changed files with 153 additions and 155 deletions
+4 -6
View File
@@ -309,7 +309,6 @@ tasks.withType(JavaCompile) {
"UnnecessaryParentheses",
"ClassCanBeStatic",
"MissingCasesInEnumSwitch",
"CompareToZero",
"OperatorPrecedence",
"MixedMutabilityReturnType",
"SameNameButDifferent",
@@ -332,11 +331,13 @@ tasks.withType(JavaCompile) {
"UnusedNestedClass",
"UndefinedEquals",
"JdkObsolete",
"OperatorPrecedence",
"NarrowingCompoundAssignment"
"OperatorPrecedence"
)
//TODO gradually enable these checks
error( "DefaultCharset",
"RemoveUnusedImports",
"WaitNotInLoop",
"ThreeLetterTimeZoneID",
// "ReturnMissingNullable",
// "InconsistentOverloads",
// "MethodCanBeStatic",
@@ -348,7 +349,6 @@ tasks.withType(JavaCompile) {
// "MultiVariableDeclaration",
// "PackageLocation",
// "PrivateConstructorForNoninstantiableModule",
// "RemoveUnusedImports",
// "UnnecessaryStaticImport",
// "UseBinds",
// "WildcardImport",
@@ -357,11 +357,9 @@ tasks.withType(JavaCompile) {
// "FloatCast",
// "ClassNewInstance",
// "ConstructorInvokesOverridable",
// "ThreeLetterTimeZoneID",
// "UnsafeFinalization",
// "MutableMethodReturnType",
// "SynchronizeOnNonFinalField",
// "WaitNotInLoop",
// "SwitchDefault",
// "ReachabilityFenceUsage",
// "BoxedPrimitiveConstructor",