Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[#2273] Improvement(build) : enable some safe error-prone checks (#2274)

Peidian lic1f07b2964d8
diff --git a/build.gradle.kts b/build.gradle.kts
index 946c5da9bc..aa01e71ed4 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -214,7 +214,84 @@ subprojects {
options.errorprone.disableAllChecks.set(true)
options.errorprone.enable(
"AnnotateFormatMethod",
- "FormatStringAnnotation"
+ "FormatStringAnnotation",
+ "AlwaysThrows",
+ "ArrayEquals",
+ "ArrayToString",
+ "ArraysAsListPrimitiveArray",
+ "ArrayFillIncompatibleType",
+ "BoxedPrimitiveEquality",
+ "ChainingConstructorIgnoresParameter",
+ "CheckNotNullMultipleTimes",
+ "CollectionIncompatibleType",
+ "CollectionToArraySafeParameter",
+ "ComparingThisWithNull",
+ "ComparisonOutOfRange",
+ "CompatibleWithAnnotationMisuse",
+ "CompileTimeConstant",
+ "ConditionalExpressionNumericPromotion",
+ "DangerousLiteralNull",
+ "DeadException",
+ "DeadThread",
+ "DoNotCall",
+ "DoNotMock",
+ "DuplicateMapKeys",
+ "EqualsNaN",
+ "EqualsNull",
+ "EqualsReference",
+ "EqualsWrongThing",
+ "ForOverride",
+ "FormatString",
+ "GetClassOnAnnotation",
+ "GetClassOnClass",
+ "HashtableContains",
+ "IdentityBinaryExpression",
+ "IdentityHashMapBoxing",
+ "Immutable",
+ "Incomparable",
+ "IncompatibleArgumentType",
+ "IndexOfChar",
+ "InfiniteRecursion",
+ "InvalidJavaTimeConstant",
+ "InvalidPatternSyntax",
+ "IsInstanceIncompatibleType",
+ "JUnit4ClassAnnotationNonStatic",
+ "JUnit4SetUpNotRun",
+ "JUnit4TearDownNotRun",
+ "JUnit4TestNotRun",
+ "JUnitAssertSameCheck",
+ "LockOnBoxedPrimitive",
+ "LoopConditionChecker",
+ "LossyPrimitiveCompare",
+ "MathRoundIntLong",
+ "MissingSuperCall",
+ "ModifyingCollectionWithItself",
+ "NonCanonicalStaticImport",
+ "NonFinalCompileTimeConstant",
+ "NonRuntimeAnnotation",
+ "NullTernary",
+ "OptionalEquality",
+ "PackageInfo",
+ "ParametersButNotParameterized",
+ "RandomCast",
+ "RandomModInteger",
+ "SelfAssignment",
+ "SelfComparison",
+ "SelfEquals",
+ "SizeGreaterThanOrEqualsZero",
+ "StreamToString",
+ "StringBuilderInitWithChar",
+ "SubstringOfZero",
+ "ThrowNull",
+ "TruthSelfEquals",
+ "TryFailThrowable",
+ "TypeParameterQualifier",
+ "UnnecessaryCheckNotNull",
+ "UnnecessaryTypeArgument",
+ "UnusedAnonymousClass",
+ "UnusedCollectionModifiedInPlace",
+ "VarTypeName",
+ "XorPower"
)
}
}