Merge "Make the tests buildable by bazel test"

This commit is contained in:
Matthias Sohn 2023-11-25 19:54:02 +00:00 committed by Gerrit Code Review
commit e9433d338c
1 changed files with 17 additions and 17 deletions

View File

@ -53,7 +53,7 @@ java_package_configuration(
"-Xep:ArraysAsListPrimitiveArray:ERROR", "-Xep:ArraysAsListPrimitiveArray:ERROR",
"-Xep:ArrayToString:ERROR", "-Xep:ArrayToString:ERROR",
"-Xep:AssertEqualsArgumentOrderChecker:ERROR", "-Xep:AssertEqualsArgumentOrderChecker:ERROR",
"-Xep:AssertionFailureIgnored:ERROR", "-Xep:AssertionFailureIgnored:WARN",
"-Xep:AsyncCallableReturnsNull:ERROR", "-Xep:AsyncCallableReturnsNull:ERROR",
"-Xep:AsyncFunctionReturnsNull:ERROR", "-Xep:AsyncFunctionReturnsNull:ERROR",
"-Xep:AutoValueConstructorOrderChecker:ERROR", "-Xep:AutoValueConstructorOrderChecker:ERROR",
@ -62,7 +62,7 @@ java_package_configuration(
"-Xep:AutoValueSubclassLeaked:WARN", "-Xep:AutoValueSubclassLeaked:WARN",
"-Xep:BadAnnotationImplementation:ERROR", "-Xep:BadAnnotationImplementation:ERROR",
"-Xep:BadComparable:ERROR", "-Xep:BadComparable:ERROR",
"-Xep:BadImport:ERROR", "-Xep:BadImport:WARN",
"-Xep:BadInstanceof:ERROR", "-Xep:BadInstanceof:ERROR",
"-Xep:BadShiftAmount:ERROR", "-Xep:BadShiftAmount:ERROR",
"-Xep:BanSerializableRead:ERROR", "-Xep:BanSerializableRead:ERROR",
@ -75,8 +75,8 @@ java_package_configuration(
"-Xep:CacheLoaderNull:ERROR", "-Xep:CacheLoaderNull:ERROR",
"-Xep:CannotMockFinalClass:ERROR", "-Xep:CannotMockFinalClass:ERROR",
"-Xep:CanonicalDuration:ERROR", "-Xep:CanonicalDuration:ERROR",
"-Xep:CatchAndPrintStackTrace:ERROR", "-Xep:CatchAndPrintStackTrace:WARN",
"-Xep:CatchFail:ERROR", "-Xep:CatchFail:WARN",
"-Xep:ChainedAssertionLosesContext:ERROR", "-Xep:ChainedAssertionLosesContext:ERROR",
"-Xep:ChainingConstructorIgnoresParameter:ERROR", "-Xep:ChainingConstructorIgnoresParameter:ERROR",
"-Xep:CharacterGetNumericValue:ERROR", "-Xep:CharacterGetNumericValue:ERROR",
@ -123,7 +123,7 @@ java_package_configuration(
"-Xep:DurationGetTemporalUnit:ERROR", "-Xep:DurationGetTemporalUnit:ERROR",
"-Xep:DurationTemporalUnit:ERROR", "-Xep:DurationTemporalUnit:ERROR",
"-Xep:DurationToLongTimeUnit:ERROR", "-Xep:DurationToLongTimeUnit:ERROR",
"-Xep:EmptyBlockTag:ERROR", "-Xep:EmptyBlockTag:WARN",
"-Xep:EmptyCatch:ERROR", "-Xep:EmptyCatch:ERROR",
"-Xep:EmptySetMultibindingContributions:ERROR", "-Xep:EmptySetMultibindingContributions:ERROR",
"-Xep:EqualsGetClass:ERROR", "-Xep:EqualsGetClass:ERROR",
@ -158,7 +158,7 @@ java_package_configuration(
"-Xep:FromTemporalAccessor:ERROR", "-Xep:FromTemporalAccessor:ERROR",
"-Xep:FunctionalInterfaceClash:ERROR", "-Xep:FunctionalInterfaceClash:ERROR",
"-Xep:FunctionalInterfaceMethodChanged:ERROR", "-Xep:FunctionalInterfaceMethodChanged:ERROR",
"-Xep:FutureReturnValueIgnored:ERROR", "-Xep:FutureReturnValueIgnored:WARN",
"-Xep:FuturesGetCheckedIllegalExceptionType:ERROR", "-Xep:FuturesGetCheckedIllegalExceptionType:ERROR",
"-Xep:GetClassOnAnnotation:ERROR", "-Xep:GetClassOnAnnotation:ERROR",
"-Xep:GetClassOnClass:ERROR", "-Xep:GetClassOnClass:ERROR",
@ -167,7 +167,7 @@ java_package_configuration(
"-Xep:GuiceAssistedInjectScoping:ERROR", "-Xep:GuiceAssistedInjectScoping:ERROR",
"-Xep:GuiceAssistedParameters:ERROR", "-Xep:GuiceAssistedParameters:ERROR",
"-Xep:HashtableContains:ERROR", "-Xep:HashtableContains:ERROR",
"-Xep:HidingField:ERROR", "-Xep:HidingField:WARN",
"-Xep:IdentityBinaryExpression:ERROR", "-Xep:IdentityBinaryExpression:ERROR",
"-Xep:IdentityHashMapBoxing:ERROR", "-Xep:IdentityHashMapBoxing:ERROR",
"-Xep:IdentityHashMapUsage:ERROR", "-Xep:IdentityHashMapUsage:ERROR",
@ -251,7 +251,7 @@ java_package_configuration(
"-Xep:LockOnBoxedPrimitive:ERROR", "-Xep:LockOnBoxedPrimitive:ERROR",
"-Xep:LogicalAssignment:ERROR", "-Xep:LogicalAssignment:ERROR",
"-Xep:LongFloatConversion:ERROR", "-Xep:LongFloatConversion:ERROR",
"-Xep:LongLiteralLowerCaseSuffix:ERROR", "-Xep:LongLiteralLowerCaseSuffix:WARN",
"-Xep:LoopConditionChecker:ERROR", "-Xep:LoopConditionChecker:ERROR",
"-Xep:LoopOverCharArray:ERROR", "-Xep:LoopOverCharArray:ERROR",
"-Xep:LossyPrimitiveCompare:ERROR", "-Xep:LossyPrimitiveCompare:ERROR",
@ -270,7 +270,7 @@ java_package_configuration(
"-Xep:MixedDescriptors:ERROR", "-Xep:MixedDescriptors:ERROR",
"-Xep:MixedMutabilityReturnType:WARN", "-Xep:MixedMutabilityReturnType:WARN",
"-Xep:MockitoUsage:ERROR", "-Xep:MockitoUsage:ERROR",
"-Xep:ModifiedButNotUsed:ERROR", "-Xep:ModifiedButNotUsed:WARN",
"-Xep:ModifyCollectionInEnhancedForLoop:ERROR", "-Xep:ModifyCollectionInEnhancedForLoop:ERROR",
"-Xep:ModifyingCollectionWithItself:ERROR", "-Xep:ModifyingCollectionWithItself:ERROR",
"-Xep:ModifySourceCollectionInStream:ERROR", "-Xep:ModifySourceCollectionInStream:ERROR",
@ -323,7 +323,7 @@ java_package_configuration(
"-Xep:PreferredInterfaceType:OFF", "-Xep:PreferredInterfaceType:OFF",
"-Xep:PrimitiveAtomicReference:ERROR", "-Xep:PrimitiveAtomicReference:ERROR",
"-Xep:PrivateSecurityContractProtoAccess:ERROR", "-Xep:PrivateSecurityContractProtoAccess:ERROR",
"-Xep:ProtectedMembersInFinalClass:ERROR", "-Xep:ProtectedMembersInFinalClass:WARN",
"-Xep:ProtoBuilderReturnValueIgnored:ERROR", "-Xep:ProtoBuilderReturnValueIgnored:ERROR",
"-Xep:ProtocolBufferOrdinal:ERROR", "-Xep:ProtocolBufferOrdinal:ERROR",
"-Xep:ProtoDurationGetSecondsGetNano:ERROR", "-Xep:ProtoDurationGetSecondsGetNano:ERROR",
@ -372,7 +372,7 @@ java_package_configuration(
"-Xep:ThreadJoinLoop:ERROR", "-Xep:ThreadJoinLoop:ERROR",
"-Xep:ThreadLocalUsage:ERROR", "-Xep:ThreadLocalUsage:ERROR",
"-Xep:ThreadPriorityCheck:ERROR", "-Xep:ThreadPriorityCheck:ERROR",
"-Xep:ThreeLetterTimeZoneID:ERROR", "-Xep:ThreeLetterTimeZoneID:WARN",
"-Xep:ThrowIfUncheckedKnownChecked:ERROR", "-Xep:ThrowIfUncheckedKnownChecked:ERROR",
"-Xep:ThrowNull:ERROR", "-Xep:ThrowNull:ERROR",
"-Xep:TimeUnitConversionChecker:ERROR", "-Xep:TimeUnitConversionChecker:ERROR",
@ -389,14 +389,14 @@ java_package_configuration(
"-Xep:TypeParameterQualifier:ERROR", "-Xep:TypeParameterQualifier:ERROR",
"-Xep:TypeParameterShadowing:ERROR", "-Xep:TypeParameterShadowing:ERROR",
"-Xep:TypeParameterUnusedInFormals:ERROR", "-Xep:TypeParameterUnusedInFormals:ERROR",
"-Xep:UndefinedEquals:ERROR", "-Xep:UndefinedEquals:WARN",
"-Xep:UnescapedEntity:ERROR", "-Xep:UnescapedEntity:WARN",
"-Xep:UnnecessaryAssignment:ERROR", "-Xep:UnnecessaryAssignment:ERROR",
"-Xep:UnnecessaryCheckNotNull:ERROR", "-Xep:UnnecessaryCheckNotNull:ERROR",
"-Xep:UnnecessaryLambda:ERROR", "-Xep:UnnecessaryLambda:ERROR",
"-Xep:UnnecessaryMethodInvocationMatcher:ERROR", "-Xep:UnnecessaryMethodInvocationMatcher:ERROR",
"-Xep:UnnecessaryMethodReference:ERROR", "-Xep:UnnecessaryMethodReference:ERROR",
"-Xep:UnnecessaryParentheses:ERROR", "-Xep:UnnecessaryParentheses:WARN",
"-Xep:UnnecessaryTypeArgument:ERROR", "-Xep:UnnecessaryTypeArgument:ERROR",
"-Xep:UnrecognisedJavadocTag:ERROR", "-Xep:UnrecognisedJavadocTag:ERROR",
"-Xep:UnsafeFinalization:ERROR", "-Xep:UnsafeFinalization:ERROR",
@ -405,12 +405,12 @@ java_package_configuration(
"-Xep:UnusedAnonymousClass:ERROR", "-Xep:UnusedAnonymousClass:ERROR",
"-Xep:UnusedCollectionModifiedInPlace:ERROR", "-Xep:UnusedCollectionModifiedInPlace:ERROR",
"-Xep:UnusedException:ERROR", "-Xep:UnusedException:ERROR",
"-Xep:UnusedMethod:ERROR", "-Xep:UnusedMethod:WARN",
"-Xep:UnusedNestedClass:ERROR", "-Xep:UnusedNestedClass:ERROR",
"-Xep:UnusedVariable:ERROR", "-Xep:UnusedVariable:WARN",
"-Xep:URLEqualsHashCode:ERROR", "-Xep:URLEqualsHashCode:ERROR",
"-Xep:UseBinds:ERROR", "-Xep:UseBinds:ERROR",
"-Xep:UseCorrectAssertInTests:ERROR", "-Xep:UseCorrectAssertInTests:WARN",
"-Xep:VariableNameSameAsType:ERROR", "-Xep:VariableNameSameAsType:ERROR",
"-Xep:VarTypeName:ERROR", "-Xep:VarTypeName:ERROR",
"-Xep:WaitNotInLoop:ERROR", "-Xep:WaitNotInLoop:ERROR",