summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2024-04-30 21:45:36 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2024-04-30 21:45:36 +0000
commit5d2ab5a653d511fb2eaa63dadf7b7537ca1a2fa3 (patch)
treec324ef190790faba2be57f817e789e74fccb1113
parent7cfb2156dbb508c5884be87e736a278f5374eb6b (diff)
parent603cd04d8292fb41aef0f3683ea848b6b38450d4 (diff)
downloaderror_prone-build-tools-release.tar.gz
Snap for 11784721 from 603cd04d8292fb41aef0f3683ea848b6b38450d4 to build-tools-releasebuild-tools-release
Change-Id: I787bc8a86bddaa34eff70fd7aaaefb5e9645c39d
-rw-r--r--OWNERS1
-rw-r--r--soong/error_prone.go48
2 files changed, 1 insertions, 48 deletions
diff --git a/OWNERS b/OWNERS
index aa3cdc3..4c9283f 100644
--- a/OWNERS
+++ b/OWNERS
@@ -2,5 +2,6 @@
# or people with more than 10 commits last year.
# Please update this list if you find better owner candidates.
ccross@android.com
+colefaust@google.com
jdesprez@google.com
paulduffin@google.com
diff --git a/soong/error_prone.go b/soong/error_prone.go
index 3388119..545ab32 100644
--- a/soong/error_prone.go
+++ b/soong/error_prone.go
@@ -113,67 +113,19 @@ func init() {
// The checks that are not fatal to the build.
config.ErrorProneChecksWarning = []string{
// Errorprone default severity ERROR
- "-Xep:BadAnnotationImplementation:WARN",
- "-Xep:BanJNDI:WARN",
- "-Xep:BareDotMetacharacter:WARN",
- "-Xep:BoxedPrimitiveEquality:WARN",
- "-Xep:ComparableType:WARN",
"-Xep:ComparisonOutOfRange:WARN",
- "-Xep:ComplexBooleanConstant:WARN",
- "-Xep:CollectionToArraySafeParameter:WARN",
- "-Xep:ConditionalExpressionNumericPromotion:WARN",
- "-Xep:DangerousLiteralNull:WARN",
"-Xep:DoubleBraceInitialization:WARN",
- "-Xep:DurationFrom:WARN",
- "-Xep:DurationTemporalUnit:WARN",
- "-Xep:EmptyTopLevelDeclaration:WARN",
"-Xep:EqualsHashCode:WARN",
- "-Xep:FormatString:WARN",
- "-Xep:FromTemporalAccessor:WARN",
- "-Xep:GetClassOnAnnotation:WARN",
- "-Xep:GetClassOnClass:WARN",
"-Xep:GuardedBy:WARN",
- "-Xep:HashtableContains:WARN",
- "-Xep:IdentityBinaryExpression:WARN",
- "-Xep:IdentityHashMapBoxing:WARN",
"-Xep:IgnoredPureGetter:WARN",
"-Xep:ImmutableAnnotationChecker:WARN",
"-Xep:ImmutableEnumChecker:WARN",
- "-Xep:InstantTemporalUnit:WARN",
- "-Xep:InvalidTimeZoneID:WARN",
- "-Xep:InvalidZoneId:WARN",
- "-Xep:IsInstanceIncompatibleType:WARN",
"-Xep:IsLoggableTagLength:WARN",
- "-Xep:JUnitParameterMethodNotFound:WARN",
"-Xep:LenientFormatStringValidation:WARN",
- "-Xep:LockOnBoxedPrimitive:WARN",
- "-Xep:MathRoundIntLong:WARN",
- "-Xep:MislabeledAndroidString:WARN",
- "-Xep:MisusedDayOfYear:WARN",
"-Xep:MissingSuperCall:WARN",
- "-Xep:MisusedWeekYear:WARN",
- "-Xep:ModifyingCollectionWithItself:WARN",
- "-Xep:NoCanIgnoreReturnValueOnClasses:WARN",
- "-Xep:NonRuntimeAnnotation:WARN",
- "-Xep:NullableOnContainingClass:WARN",
- "-Xep:NullTernary:WARN",
- "-Xep:OverridesJavaxInjectableMethod:WARN",
- "-Xep:ParcelableCreator:WARN",
- "-Xep:PeriodFrom:WARN",
- "-Xep:PreconditionsInvalidPlaceholder:WARN",
- "-Xep:ProtoBuilderReturnValueIgnored:WARN",
"-Xep:ProtocolBufferOrdinal:WARN",
- "-Xep:ProtoFieldNullComparison:WARN",
- "-Xep:RandomModInteger:WARN",
"-Xep:RectIntersectReturnValueIgnored:WARN",
"-Xep:ReturnValueIgnored:WARN",
- "-Xep:SelfAssignment:WARN",
- "-Xep:SelfComparison:WARN",
- "-Xep:SelfEquals:WARN",
- "-Xep:SizeGreaterThanOrEqualsZero:WARN",
- "-Xep:StringBuilderInitWithChar:WARN",
- "-Xep:UnnecessaryCheckNotNull:WARN",
- "-Xep:UnusedCollectionModifiedInPlace:WARN",
}
// The checks that are default-disabled