Bazel: format build files with buildifier Change-Id: I7a654fe8f138c4e59687d65a3ada4bfee4e51173
diff --git a/lib/BUILD b/lib/BUILD index 20b85da..c1a3672 100644 --- a/lib/BUILD +++ b/lib/BUILD
@@ -264,10 +264,10 @@ testonly = 1, visibility = ["//visibility:public"], exports = [ - "@external_deps//:net_bytebuddy_byte_buddy_agent", - "@external_deps//:net_bytebuddy_byte_buddy", - "@external_deps//:org_hamcrest_hamcrest", "@external_deps//:junit_junit", + "@external_deps//:net_bytebuddy_byte_buddy", + "@external_deps//:net_bytebuddy_byte_buddy_agent", + "@external_deps//:org_hamcrest_hamcrest", "@external_deps//:org_mockito_mockito_core", "@external_deps//:org_objenesis_objenesis", ], @@ -278,8 +278,8 @@ testonly = 1, visibility = ["//visibility:public"], exports = [ - "@external_deps//:net_bytebuddy_byte_buddy_agent", "@external_deps//:net_bytebuddy_byte_buddy", + "@external_deps//:net_bytebuddy_byte_buddy_agent", "@external_deps//:org_mockito_mockito_core", "@external_deps//:org_objenesis_objenesis", ],
diff --git a/lib/jmh/BUILD b/lib/jmh/BUILD index 2b15300..e6d3977 100644 --- a/lib/jmh/BUILD +++ b/lib/jmh/BUILD
@@ -4,9 +4,9 @@ name = "jmh", visibility = ["//visibility:public"], exports = [ - "@external_deps//:org_openjdk_jmh_jmh_generator_annprocess", - "@external_deps//:org_openjdk_jmh_jmh_core", "@external_deps//:net_sf_jopt_simple_jopt_simple", "@external_deps//:org_apache_commons_commons_math3", + "@external_deps//:org_openjdk_jmh_jmh_core", + "@external_deps//:org_openjdk_jmh_jmh_generator_annprocess", ], )
diff --git a/org.eclipse.jgit.benchmarks/BUILD b/org.eclipse.jgit.benchmarks/BUILD index 7c311e7..91ceb7f 100644 --- a/org.eclipse.jgit.benchmarks/BUILD +++ b/org.eclipse.jgit.benchmarks/BUILD
@@ -6,8 +6,8 @@ jmh_java_benchmarks( name = "benchmarks", - srcs = SRCS, testonly = 1, + srcs = SRCS, deps = [ "//lib:javaewah", "//lib:junit",
diff --git a/org.eclipse.jgit.junit.http/BUILD b/org.eclipse.jgit.junit.http/BUILD index 66620ce..87dcf3e 100644 --- a/org.eclipse.jgit.junit.http/BUILD +++ b/org.eclipse.jgit.junit.http/BUILD
@@ -6,7 +6,10 @@ name = "junit-http", testonly = 1, srcs = glob(["src/**/*.java"]), - resources = glob(["resources/**"], allow_empty=True), + resources = glob( + ["resources/**"], + allow_empty = True, + ), # TODO(davido): we want here provided deps deps = [ "//lib:jetty-http",
diff --git a/org.eclipse.jgit.junit/BUILD b/org.eclipse.jgit.junit/BUILD index f4a7165..8879cd9 100644 --- a/org.eclipse.jgit.junit/BUILD +++ b/org.eclipse.jgit.junit/BUILD
@@ -7,7 +7,10 @@ testonly = 1, srcs = glob(["src/**/*.java"]), resource_strip_prefix = "org.eclipse.jgit.junit/resources", - resources = glob(["resources/**"], allow_empty=True), + resources = glob( + ["resources/**"], + allow_empty = True, + ), deps = [ "//lib:junit", # We want these deps to be provided_deps
diff --git a/org.eclipse.jgit.pgm.test/BUILD b/org.eclipse.jgit.pgm.test/BUILD index b8ffa69..fdd87d3 100644 --- a/org.eclipse.jgit.pgm.test/BUILD +++ b/org.eclipse.jgit.pgm.test/BUILD
@@ -15,8 +15,8 @@ deps = [ ":helpers", "//lib:args4j", - "//lib:commons-io", "//lib:commons-compress", + "//lib:commons-io", "//lib:javaewah", "//lib:junit", "//lib:slf4j-api",
diff --git a/org.eclipse.jgit.test/BUILD b/org.eclipse.jgit.test/BUILD index 7755df0..7dab36d 100644 --- a/org.eclipse.jgit.test/BUILD +++ b/org.eclipse.jgit.test/BUILD
@@ -53,10 +53,11 @@ exclude = HELPERS + DATA + EXCLUDED, )) - -tests(tests = glob(["exttst/**/*.java"]), +tests( + extra_tags = ["ext"], srcprefix = "exttst/", - extra_tags = ["ext"]) + tests = glob(["exttst/**/*.java"]), +) # Non abstract base classes used for tests by other test classes BASE = [
diff --git a/org.eclipse.jgit/BUILD b/org.eclipse.jgit/BUILD index 1e9b770..5d4bce4 100644 --- a/org.eclipse.jgit/BUILD +++ b/org.eclipse.jgit/BUILD
@@ -16,6 +16,12 @@ java_library( name = "jgit_non_stamped", srcs = SRCS, + javacopts = [ + "-Xep:ReferenceEquality:OFF", + "-Xep:StringEquality:OFF", + "-Xep:TypeParameterUnusedInFormals:OFF", + "-Xep:DefaultCharset:OFF", + ], resource_strip_prefix = "org.eclipse.jgit/resources", resources = RESOURCES, deps = [ @@ -24,12 +30,6 @@ "//lib:javaewah", "//lib:slf4j-api", ], - javacopts = [ - "-Xep:ReferenceEquality:OFF", - "-Xep:StringEquality:OFF", - "-Xep:TypeParameterUnusedInFormals:OFF", - "-Xep:DefaultCharset:OFF", - ] ) genrule(
diff --git a/tools/BUILD b/tools/BUILD index 379a9bd..4238054 100644 --- a/tools/BUILD +++ b/tools/BUILD
@@ -35,398 +35,399 @@ # https://github.com/bazelbuild/BUILD_file_generator/blob/master/tools/bazel_defs/java.bzl # However, feel free to add any additional errors. Thus far they have all been pretty useful. errorprone_checks = [ - "-XepDisableWarningsInGeneratedCode", - # The XepDisableWarningsInGeneratedCode disables only warnings, but - # not errors. We should manually exclude all files generated by - # AutoValue; such files always start $AutoValue_..... - # XepExcludedPaths is a regexp. If you need more paths - use | as - # separator. - "-XepExcludedPaths:.*/\\\\$$AutoValue_.*\\.java", - "-Xep:AlmostJavadoc:ERROR", - "-Xep:AlwaysThrows:ERROR", - "-Xep:AmbiguousMethodReference:ERROR", - # don't want to add dependency to errorprone - "-Xep:AnnotateFormatMethod:OFF", - "-Xep:ArgumentSelectionDefectChecker:ERROR", - "-Xep:ArrayAsKeyOfSetOrMap:ERROR", - "-Xep:ArrayEquals:ERROR", - "-Xep:ArrayFillIncompatibleType:ERROR", - "-Xep:ArrayHashCode:ERROR", - "-Xep:ArraysAsListPrimitiveArray:ERROR", - "-Xep:ArrayToString:ERROR", - "-Xep:AssertEqualsArgumentOrderChecker:WARN", - "-Xep:AssertionFailureIgnored:WARN", - "-Xep:AsyncCallableReturnsNull:ERROR", - "-Xep:AsyncFunctionReturnsNull:ERROR", - "-Xep:AutoValueConstructorOrderChecker:ERROR", - "-Xep:AutoValueFinalMethods:ERROR", - "-Xep:AutoValueImmutableFields:ERROR", - "-Xep:AutoValueSubclassLeaked:WARN", - "-Xep:BadAnnotationImplementation:ERROR", - "-Xep:BadComparable:ERROR", - "-Xep:BadImport:ERROR", - "-Xep:BadInstanceof:ERROR", - "-Xep:BadShiftAmount:ERROR", - "-Xep:BanSerializableRead:ERROR", - "-Xep:BigDecimalEquals:ERROR", - "-Xep:BigDecimalLiteralDouble:ERROR", - "-Xep:BoxedPrimitiveConstructor:ERROR", - "-Xep:BoxedPrimitiveEquality:ERROR", - "-Xep:BundleDeserializationCast:ERROR", - "-Xep:ByteBufferBackingArray:WARN", - "-Xep:CacheLoaderNull:ERROR", - "-Xep:CannotMockFinalClass:ERROR", - "-Xep:CanonicalDuration:ERROR", - "-Xep:CatchAndPrintStackTrace:ERROR", - "-Xep:CatchFail:ERROR", - "-Xep:ChainedAssertionLosesContext:ERROR", - "-Xep:ChainingConstructorIgnoresParameter:ERROR", - "-Xep:CharacterGetNumericValue:ERROR", - "-Xep:CheckNotNullMultipleTimes:ERROR", - "-Xep:CheckReturnValue:ERROR", - "-Xep:ClassCanBeStatic:ERROR", - "-Xep:ClassName:ERROR", - "-Xep:ClassNewInstance:ERROR", - "-Xep:CollectionIncompatibleType:ERROR", - "-Xep:CollectionToArraySafeParameter:ERROR", - "-Xep:CollectionUndefinedEquality:ERROR", - "-Xep:CollectorShouldNotUseState:ERROR", - "-Xep:ComparableAndComparator:ERROR", - "-Xep:ComparableType:ERROR", - "-Xep:CompareToZero:ERROR", - "-Xep:ComparingThisWithNull:ERROR", - "-Xep:ComparisonOutOfRange:ERROR", - "-Xep:CompatibleWithAnnotationMisuse:ERROR", - "-Xep:CompileTimeConstant:ERROR", - "-Xep:ComplexBooleanConstant:ERROR", - "-Xep:ComputeIfAbsentAmbiguousReference:ERROR", - "-Xep:ConditionalExpressionNumericPromotion:ERROR", - "-Xep:ConstantOverflow:ERROR", - "-Xep:DaggerProvidesNull:ERROR", - "-Xep:DangerousLiteralNull:ERROR", - "-Xep:DateChecker:ERROR", - "-Xep:DateFormatConstant:ERROR", - "-Xep:DeadException:ERROR", - "-Xep:DeadThread:ERROR", - "-Xep:DefaultCharset:ERROR", - "-Xep:DefaultPackage:ERROR", - "-Xep:DepAnn:ERROR", - "-Xep:DeprecatedVariable:ERROR", - "-Xep:DiscardedPostfixExpression:ERROR", - "-Xep:DoNotCall:ERROR", - "-Xep:DoNotCallSuggester:ERROR", - "-Xep:DoNotClaimAnnotations:ERROR", - "-Xep:DoNotMock:ERROR", - "-Xep:DoNotMockAutoValue:WARN", - "-Xep:DoubleBraceInitialization:ERROR", - "-Xep:DoubleCheckedLocking:ERROR", - "-Xep:DuplicateMapKeys:ERROR", - "-Xep:DurationFrom:ERROR", - "-Xep:DurationGetTemporalUnit:ERROR", - "-Xep:DurationTemporalUnit:ERROR", - "-Xep:DurationToLongTimeUnit:ERROR", - "-Xep:EmptyBlockTag:WARN", - "-Xep:EmptyCatch:ERROR", - "-Xep:EmptySetMultibindingContributions:ERROR", - "-Xep:EqualsGetClass:ERROR", - "-Xep:EqualsHashCode:ERROR", - "-Xep:EqualsIncompatibleType:ERROR", - "-Xep:EqualsNaN:ERROR", - "-Xep:EqualsNull:ERROR", - "-Xep:EqualsReference:ERROR", - "-Xep:EqualsUnsafeCast:ERROR", - "-Xep:EqualsUsingHashCode:ERROR", - "-Xep:EqualsWrongThing:ERROR", - "-Xep:ErroneousThreadPoolConstructorChecker:ERROR", - "-Xep:EscapedEntity:WARN", - "-Xep:ExpectedExceptionChecker:ERROR", - "-Xep:ExtendingJUnitAssert:ERROR", - "-Xep:ExtendsAutoValue:ERROR", - "-Xep:FallThrough:ERROR", - "-Xep:Finally:ERROR", - "-Xep:FloatCast:ERROR", - "-Xep:FloatingPointAssertionWithinEpsilon:ERROR", - "-Xep:FloatingPointLiteralPrecision:ERROR", - "-Xep:FloggerArgumentToString:ERROR", - "-Xep:FloggerFormatString:ERROR", - "-Xep:FloggerLogVarargs:ERROR", - "-Xep:FloggerSplitLogStatement:ERROR", - "-Xep:FloggerStringConcatenation:ERROR", - "-Xep:FormatString:ERROR", - "-Xep:FormatStringAnnotation:ERROR", - "-Xep:ForOverride:ERROR", - "-Xep:FragmentInjection:ERROR", - "-Xep:FragmentNotInstantiable:ERROR", - "-Xep:FromTemporalAccessor:ERROR", - "-Xep:FunctionalInterfaceClash:ERROR", - "-Xep:FunctionalInterfaceMethodChanged:ERROR", - "-Xep:FutureReturnValueIgnored:ERROR", - "-Xep:FuturesGetCheckedIllegalExceptionType:ERROR", - "-Xep:GetClassOnAnnotation:ERROR", - "-Xep:GetClassOnClass:ERROR", - "-Xep:GetClassOnEnum:ERROR", - "-Xep:GuardedBy:ERROR", - "-Xep:GuiceAssistedInjectScoping:ERROR", - "-Xep:GuiceAssistedParameters:ERROR", - "-Xep:HashtableContains:ERROR", - "-Xep:HidingField:WARN", - "-Xep:IdentityBinaryExpression:ERROR", - "-Xep:IdentityHashMapBoxing:ERROR", - "-Xep:IdentityHashMapUsage:ERROR", - "-Xep:IgnoredPureGetter:ERROR", - "-Xep:Immutable:ERROR", - "-Xep:ImmutableAnnotationChecker:ERROR", - "-Xep:ImmutableEnumChecker:ERROR", - "-Xep:ImmutableModification:ERROR", - "-Xep:Incomparable:ERROR", - "-Xep:IncompatibleArgumentType:ERROR", - "-Xep:IncompatibleModifiers:ERROR", - "-Xep:InconsistentCapitalization:WARN", - "-Xep:InconsistentHashCode:ERROR", - "-Xep:IncrementInForLoopAndHeader:ERROR", - "-Xep:IndexOfChar:ERROR", - "-Xep:InexactVarargsConditional:ERROR", - "-Xep:InfiniteRecursion:ERROR", - "-Xep:InheritDoc:ERROR", - "-Xep:InjectOnConstructorOfAbstractClass:ERROR", - "-Xep:InlineFormatString:ERROR", - "-Xep:InlineMeInliner:ERROR", - # don't want to add dependency to errorprone - "-Xep:InlineMeSuggester:OFF", - "-Xep:InlineMeValidator:ERROR", - "-Xep:InputStreamSlowMultibyteRead:ERROR", - "-Xep:InsecureCryptoUsage:ERROR", - "-Xep:InstanceOfAndCastMatchWrongType:ERROR", - "-Xep:InstantTemporalUnit:ERROR", - "-Xep:IntLongMath:ERROR", - "-Xep:InvalidBlockTag:ERROR", - "-Xep:InvalidInlineTag:ERROR", - "-Xep:InvalidJavaTimeConstant:ERROR", - "-Xep:InvalidLink:ERROR", - "-Xep:InvalidParam:ERROR", - "-Xep:InvalidPatternSyntax:ERROR", - "-Xep:InvalidThrows:ERROR", - "-Xep:InvalidThrowsLink:ERROR", - "-Xep:InvalidTimeZoneID:ERROR", - "-Xep:InvalidZoneId:ERROR", - "-Xep:IsInstanceIncompatibleType:ERROR", - "-Xep:IsInstanceOfClass:ERROR", - "-Xep:IsLoggableTagLength:ERROR", - "-Xep:IterableAndIterator:ERROR", - "-Xep:IterablePathParameter:ERROR", - "-Xep:JavaDurationGetSecondsGetNano:ERROR", - "-Xep:JavaDurationWithNanos:ERROR", - "-Xep:JavaDurationWithSeconds:ERROR", - "-Xep:JavaInstantGetSecondsGetNano:ERROR", - "-Xep:JavaLangClash:ERROR", - "-Xep:JavaLocalDateTimeGetNano:ERROR", - "-Xep:JavaLocalTimeGetNano:ERROR", - "-Xep:JavaPeriodGetDays:ERROR", - "-Xep:JavaTimeDefaultTimeZone:ERROR", - "-Xep:JavaUtilDate:WARN", - "-Xep:JdkObsolete:ERROR", - "-Xep:JodaConstructors:ERROR", - "-Xep:JodaDateTimeConstants:ERROR", - "-Xep:JodaDurationWithMillis:ERROR", - "-Xep:JodaInstantWithMillis:ERROR", - "-Xep:JodaNewPeriod:ERROR", - "-Xep:JodaPlusMinusLong:ERROR", - "-Xep:JodaTimeConverterManager:ERROR", - "-Xep:JodaToSelf:ERROR", - "-Xep:JodaWithDurationAddedLong:ERROR", - "-Xep:JUnit3FloatingPointComparisonWithoutDelta:ERROR", - "-Xep:JUnit3TestNotRun:ERROR", - "-Xep:JUnit4ClassAnnotationNonStatic:ERROR", - "-Xep:JUnit4ClassUsedInJUnit3:ERROR", - "-Xep:JUnit4SetUpNotRun:ERROR", - "-Xep:JUnit4TearDownNotRun:ERROR", - "-Xep:JUnit4TestNotRun:ERROR", - "-Xep:JUnit4TestsNotRunWithinEnclosed:ERROR", - "-Xep:JUnitAmbiguousTestClass:ERROR", - "-Xep:JUnitAssertSameCheck:ERROR", - "-Xep:JUnitParameterMethodNotFound:ERROR", - "-Xep:LiteByteStringUtf8:ERROR", - "-Xep:LiteEnumValueOf:ERROR", - "-Xep:LiteProtoToString:ERROR", - "-Xep:LocalDateTemporalAmount:ERROR", - "-Xep:LockNotBeforeTry:ERROR", - "-Xep:LockOnBoxedPrimitive:ERROR", - "-Xep:LogicalAssignment:ERROR", - "-Xep:LongFloatConversion:ERROR", - "-Xep:LongLiteralLowerCaseSuffix:ERROR", - "-Xep:LoopConditionChecker:ERROR", - "-Xep:LoopOverCharArray:ERROR", - "-Xep:LossyPrimitiveCompare:ERROR", - "-Xep:MathAbsoluteRandom:ERROR", - "-Xep:MathRoundIntLong:ERROR", - "-Xep:MemoizeConstantVisitorStateLookups:ERROR", - "-Xep:MislabeledAndroidString:ERROR", - "-Xep:MissingCasesInEnumSwitch:ERROR", - "-Xep:MissingFail:ERROR", - "-Xep:MissingOverride:ERROR", - "-Xep:MissingSummary:WARN", - "-Xep:MissingSuperCall:ERROR", - "-Xep:MissingTestCall:ERROR", - "-Xep:MisusedDayOfYear:ERROR", - "-Xep:MisusedWeekYear:ERROR", - "-Xep:MixedDescriptors:ERROR", - "-Xep:MixedMutabilityReturnType:WARN", - "-Xep:MockitoUsage:ERROR", - "-Xep:ModifiedButNotUsed:ERROR", - "-Xep:ModifyCollectionInEnhancedForLoop:ERROR", - "-Xep:ModifyingCollectionWithItself:ERROR", - "-Xep:ModifySourceCollectionInStream:ERROR", - "-Xep:MultipleParallelOrSequentialCalls:ERROR", - "-Xep:MultipleUnaryOperatorsInMethodCall:ERROR", - "-Xep:MustBeClosedChecker:ERROR", - "-Xep:MutableConstantField:ERROR", - # Java provides no good alternative - "-Xep:MutablePublicArray:OFF", - "-Xep:NarrowingCompoundAssignment:ERROR", - "-Xep:NCopiesOfChar:ERROR", - "-Xep:NestedInstanceOfConditions:ERROR", - "-Xep:NonAtomicVolatileUpdate:ERROR", - "-Xep:NonCanonicalStaticImport:ERROR", - "-Xep:NonCanonicalType:ERROR", - "-Xep:NonFinalCompileTimeConstant:ERROR", - "-Xep:NonOverridingEquals:ERROR", - "-Xep:NonRuntimeAnnotation:ERROR", - "-Xep:NullableConstructor:ERROR", - "-Xep:NullablePrimitive:ERROR", - "-Xep:NullablePrimitiveArray:ERROR", - "-Xep:NullableVoid:ERROR", - "-Xep:NullOptional:ERROR", - "-Xep:NullTernary:ERROR", - "-Xep:ObjectEqualsForPrimitives:ERROR", - "-Xep:ObjectsHashCodePrimitive:ERROR", - "-Xep:ObjectToString:ERROR", - "-Xep:OperatorPrecedence:ERROR", - "-Xep:OptionalEquality:ERROR", - "-Xep:OptionalMapToOptional:ERROR", - "-Xep:OptionalMapUnusedValue:ERROR", - "-Xep:OptionalNotPresent:ERROR", - "-Xep:OptionalOfRedundantMethod:ERROR", - "-Xep:OrphanedFormatString:ERROR", - "-Xep:OutlineNone:ERROR", - "-Xep:OverlappingQualifierAndScopeAnnotation:ERROR", - "-Xep:Overrides:ERROR", - "-Xep:OverridesGuiceInjectableMethod:ERROR", - "-Xep:OverridesJavaxInjectableMethod:ERROR", - "-Xep:OverrideThrowableToString:ERROR", - "-Xep:PackageInfo:ERROR", - "-Xep:ParameterName:ERROR", - "-Xep:ParametersButNotParameterized:ERROR", - "-Xep:ParcelableCreator:ERROR", - "-Xep:PeriodFrom:ERROR", - "-Xep:PeriodGetTemporalUnit:ERROR", - "-Xep:PeriodTimeMath:ERROR", - "-Xep:PreconditionsCheckNotNullRepeated:ERROR", - "-Xep:PreconditionsInvalidPlaceholder:ERROR", - "-Xep:PreferredInterfaceType:OFF", - "-Xep:PrimitiveAtomicReference:ERROR", - "-Xep:PrivateSecurityContractProtoAccess:ERROR", - "-Xep:ProtectedMembersInFinalClass:ERROR", - "-Xep:ProtoBuilderReturnValueIgnored:ERROR", - "-Xep:ProtocolBufferOrdinal:ERROR", - "-Xep:ProtoDurationGetSecondsGetNano:ERROR", - "-Xep:ProtoFieldNullComparison:ERROR", - "-Xep:ProtoFieldPreconditionsCheckNotNull:ERROR", - "-Xep:ProtoRedundantSet:ERROR", - "-Xep:ProtoStringFieldReferenceEquality:ERROR", - "-Xep:ProtoTimestampGetSecondsGetNano:ERROR", - "-Xep:ProtoTruthMixedDescriptors:ERROR", - "-Xep:ProvidesMethodOutsideOfModule:ERROR", - "-Xep:RandomCast:ERROR", - "-Xep:RandomModInteger:ERROR", - "-Xep:ReachabilityFenceUsage:ERROR", - "-Xep:RectIntersectReturnValueIgnored:ERROR", - "-Xep:ReferenceEquality:ERROR", - "-Xep:RefersToDaggerCodegen:ERROR", - "-Xep:RemovedInJDK11:ERROR", - "-Xep:RequiredModifiers:ERROR", - "-Xep:RestrictedApiChecker:ERROR", - "-Xep:RethrowReflectiveOperationExceptionAsLinkageError:ERROR", - "-Xep:ReturnFromVoid:ERROR", - "-Xep:ReturnValueIgnored:ERROR", - "-Xep:RxReturnValueIgnored:ERROR", - "-Xep:SameNameButDifferent:ERROR", - "-Xep:SelfAssignment:ERROR", - "-Xep:SelfComparison:ERROR", - "-Xep:SelfEquals:ERROR", - "-Xep:ShortCircuitBoolean:ERROR", - "-Xep:ShouldHaveEvenArgs:ERROR", - "-Xep:SizeGreaterThanOrEqualsZero:ERROR", - "-Xep:StaticAssignmentInConstructor:ERROR", - "-Xep:StaticGuardedByInstance:ERROR", - "-Xep:StaticMockMember:ERROR", - "-Xep:StaticQualifiedUsingExpression:ERROR", - "-Xep:StreamToString:ERROR", - "-Xep:StringBuilderInitWithChar:ERROR", - "-Xep:StringEquality:ERROR", - "-Xep:StringSplitter:WARN", - "-Xep:SubstringOfZero:ERROR", - "-Xep:SuppressWarningsDeprecated:ERROR", - "-Xep:SwigMemoryLeak:ERROR", - "-Xep:SynchronizeOnNonFinalField:ERROR", - "-Xep:TemporalAccessorGetChronoField:ERROR", - "-Xep:TestParametersNotInitialized:ERROR", - "-Xep:TheoryButNoTheories:ERROR", - "-Xep:ThreadJoinLoop:ERROR", - "-Xep:ThreadLocalUsage:ERROR", - "-Xep:ThreadPriorityCheck:ERROR", - "-Xep:ThreeLetterTimeZoneID:WARN", - "-Xep:ThrowIfUncheckedKnownChecked:ERROR", - "-Xep:ThrowNull:ERROR", - "-Xep:TimeUnitConversionChecker:ERROR", - "-Xep:ToStringReturnsNull:ERROR", - "-Xep:TreeToString:ERROR", - "-Xep:TruthAssertExpected:ERROR", - "-Xep:TruthConstantAsserts:ERROR", - "-Xep:TruthGetOrDefault:ERROR", - "-Xep:TruthIncompatibleType:ERROR", - "-Xep:TruthSelfEquals:ERROR", - "-Xep:TryFailThrowable:ERROR", - "-Xep:TypeEquals:ERROR", - "-Xep:TypeNameShadowing:ERROR", - "-Xep:TypeParameterQualifier:ERROR", - "-Xep:TypeParameterShadowing:ERROR", - "-Xep:TypeParameterUnusedInFormals:ERROR", - "-Xep:UndefinedEquals:WARN", - "-Xep:UnescapedEntity:WARN", - "-Xep:UnnecessaryAssignment:ERROR", - "-Xep:UnnecessaryCheckNotNull:ERROR", - "-Xep:UnnecessaryLambda:ERROR", - "-Xep:UnnecessaryMethodInvocationMatcher:ERROR", - "-Xep:UnnecessaryMethodReference:ERROR", - "-Xep:UnnecessaryParentheses:ERROR", - "-Xep:UnnecessaryTypeArgument:ERROR", - "-Xep:UnrecognisedJavadocTag:ERROR", - "-Xep:UnsafeFinalization:ERROR", - "-Xep:UnsafeReflectiveConstructionCast:ERROR", - "-Xep:UnsynchronizedOverridesSynchronized:ERROR", - "-Xep:UnusedAnonymousClass:ERROR", - "-Xep:UnusedCollectionModifiedInPlace:ERROR", - "-Xep:UnusedException:ERROR", - "-Xep:UnusedMethod:WARN", - "-Xep:UnusedNestedClass:ERROR", - "-Xep:UnusedVariable:ERROR", - "-Xep:URLEqualsHashCode:ERROR", - "-Xep:UseBinds:ERROR", - "-Xep:UseCorrectAssertInTests:ERROR", - "-Xep:VariableNameSameAsType:ERROR", - "-Xep:VarTypeName:ERROR", - "-Xep:WaitNotInLoop:ERROR", - "-Xep:WakelockReleasedDangerously:ERROR", - "-Xep:WildcardImport:ERROR", - "-Xep:WithSignatureDiscouraged:ERROR", - "-Xep:WrongOneof:ERROR", - "-Xep:XorPower:ERROR", - "-Xep:ZoneIdOfZ:ERROR", + "-XepDisableWarningsInGeneratedCode", + # The XepDisableWarningsInGeneratedCode disables only warnings, but + # not errors. We should manually exclude all files generated by + # AutoValue; such files always start $AutoValue_..... + # XepExcludedPaths is a regexp. If you need more paths - use | as + # separator. + "-XepExcludedPaths:.*/\\\\$$AutoValue_.*\\.java", + "-Xep:AlmostJavadoc:ERROR", + "-Xep:AlwaysThrows:ERROR", + "-Xep:AmbiguousMethodReference:ERROR", + # don't want to add dependency to errorprone + "-Xep:AnnotateFormatMethod:OFF", + "-Xep:ArgumentSelectionDefectChecker:ERROR", + "-Xep:ArrayAsKeyOfSetOrMap:ERROR", + "-Xep:ArrayEquals:ERROR", + "-Xep:ArrayFillIncompatibleType:ERROR", + "-Xep:ArrayHashCode:ERROR", + "-Xep:ArraysAsListPrimitiveArray:ERROR", + "-Xep:ArrayToString:ERROR", + "-Xep:AssertEqualsArgumentOrderChecker:WARN", + "-Xep:AssertionFailureIgnored:WARN", + "-Xep:AsyncCallableReturnsNull:ERROR", + "-Xep:AsyncFunctionReturnsNull:ERROR", + "-Xep:AutoValueConstructorOrderChecker:ERROR", + "-Xep:AutoValueFinalMethods:ERROR", + "-Xep:AutoValueImmutableFields:ERROR", + "-Xep:AutoValueSubclassLeaked:WARN", + "-Xep:BadAnnotationImplementation:ERROR", + "-Xep:BadComparable:ERROR", + "-Xep:BadImport:ERROR", + "-Xep:BadInstanceof:ERROR", + "-Xep:BadShiftAmount:ERROR", + "-Xep:BanSerializableRead:ERROR", + "-Xep:BigDecimalEquals:ERROR", + "-Xep:BigDecimalLiteralDouble:ERROR", + "-Xep:BoxedPrimitiveConstructor:ERROR", + "-Xep:BoxedPrimitiveEquality:ERROR", + "-Xep:BundleDeserializationCast:ERROR", + "-Xep:ByteBufferBackingArray:WARN", + "-Xep:CacheLoaderNull:ERROR", + "-Xep:CannotMockFinalClass:ERROR", + "-Xep:CanonicalDuration:ERROR", + "-Xep:CatchAndPrintStackTrace:ERROR", + "-Xep:CatchFail:ERROR", + "-Xep:ChainedAssertionLosesContext:ERROR", + "-Xep:ChainingConstructorIgnoresParameter:ERROR", + "-Xep:CharacterGetNumericValue:ERROR", + "-Xep:CheckNotNullMultipleTimes:ERROR", + "-Xep:CheckReturnValue:ERROR", + "-Xep:ClassCanBeStatic:ERROR", + "-Xep:ClassName:ERROR", + "-Xep:ClassNewInstance:ERROR", + "-Xep:CollectionIncompatibleType:ERROR", + "-Xep:CollectionToArraySafeParameter:ERROR", + "-Xep:CollectionUndefinedEquality:ERROR", + "-Xep:CollectorShouldNotUseState:ERROR", + "-Xep:ComparableAndComparator:ERROR", + "-Xep:ComparableType:ERROR", + "-Xep:CompareToZero:ERROR", + "-Xep:ComparingThisWithNull:ERROR", + "-Xep:ComparisonOutOfRange:ERROR", + "-Xep:CompatibleWithAnnotationMisuse:ERROR", + "-Xep:CompileTimeConstant:ERROR", + "-Xep:ComplexBooleanConstant:ERROR", + "-Xep:ComputeIfAbsentAmbiguousReference:ERROR", + "-Xep:ConditionalExpressionNumericPromotion:ERROR", + "-Xep:ConstantOverflow:ERROR", + "-Xep:DaggerProvidesNull:ERROR", + "-Xep:DangerousLiteralNull:ERROR", + "-Xep:DateChecker:ERROR", + "-Xep:DateFormatConstant:ERROR", + "-Xep:DeadException:ERROR", + "-Xep:DeadThread:ERROR", + "-Xep:DefaultCharset:ERROR", + "-Xep:DefaultPackage:ERROR", + "-Xep:DepAnn:ERROR", + "-Xep:DeprecatedVariable:ERROR", + "-Xep:DiscardedPostfixExpression:ERROR", + "-Xep:DoNotCall:ERROR", + "-Xep:DoNotCallSuggester:ERROR", + "-Xep:DoNotClaimAnnotations:ERROR", + "-Xep:DoNotMock:ERROR", + "-Xep:DoNotMockAutoValue:WARN", + "-Xep:DoubleBraceInitialization:ERROR", + "-Xep:DoubleCheckedLocking:ERROR", + "-Xep:DuplicateMapKeys:ERROR", + "-Xep:DurationFrom:ERROR", + "-Xep:DurationGetTemporalUnit:ERROR", + "-Xep:DurationTemporalUnit:ERROR", + "-Xep:DurationToLongTimeUnit:ERROR", + "-Xep:EmptyBlockTag:WARN", + "-Xep:EmptyCatch:ERROR", + "-Xep:EmptySetMultibindingContributions:ERROR", + "-Xep:EqualsGetClass:ERROR", + "-Xep:EqualsHashCode:ERROR", + "-Xep:EqualsIncompatibleType:ERROR", + "-Xep:EqualsNaN:ERROR", + "-Xep:EqualsNull:ERROR", + "-Xep:EqualsReference:ERROR", + "-Xep:EqualsUnsafeCast:ERROR", + "-Xep:EqualsUsingHashCode:ERROR", + "-Xep:EqualsWrongThing:ERROR", + "-Xep:ErroneousThreadPoolConstructorChecker:ERROR", + "-Xep:EscapedEntity:WARN", + "-Xep:ExpectedExceptionChecker:ERROR", + "-Xep:ExtendingJUnitAssert:ERROR", + "-Xep:ExtendsAutoValue:ERROR", + "-Xep:FallThrough:ERROR", + "-Xep:Finally:ERROR", + "-Xep:FloatCast:ERROR", + "-Xep:FloatingPointAssertionWithinEpsilon:ERROR", + "-Xep:FloatingPointLiteralPrecision:ERROR", + "-Xep:FloggerArgumentToString:ERROR", + "-Xep:FloggerFormatString:ERROR", + "-Xep:FloggerLogVarargs:ERROR", + "-Xep:FloggerSplitLogStatement:ERROR", + "-Xep:FloggerStringConcatenation:ERROR", + "-Xep:FormatString:ERROR", + "-Xep:FormatStringAnnotation:ERROR", + "-Xep:ForOverride:ERROR", + "-Xep:FragmentInjection:ERROR", + "-Xep:FragmentNotInstantiable:ERROR", + "-Xep:FromTemporalAccessor:ERROR", + "-Xep:FunctionalInterfaceClash:ERROR", + "-Xep:FunctionalInterfaceMethodChanged:ERROR", + "-Xep:FutureReturnValueIgnored:ERROR", + "-Xep:FuturesGetCheckedIllegalExceptionType:ERROR", + "-Xep:GetClassOnAnnotation:ERROR", + "-Xep:GetClassOnClass:ERROR", + "-Xep:GetClassOnEnum:ERROR", + "-Xep:GuardedBy:ERROR", + "-Xep:GuiceAssistedInjectScoping:ERROR", + "-Xep:GuiceAssistedParameters:ERROR", + "-Xep:HashtableContains:ERROR", + "-Xep:HidingField:WARN", + "-Xep:IdentityBinaryExpression:ERROR", + "-Xep:IdentityHashMapBoxing:ERROR", + "-Xep:IdentityHashMapUsage:ERROR", + "-Xep:IgnoredPureGetter:ERROR", + "-Xep:Immutable:ERROR", + "-Xep:ImmutableAnnotationChecker:ERROR", + "-Xep:ImmutableEnumChecker:ERROR", + "-Xep:ImmutableModification:ERROR", + "-Xep:Incomparable:ERROR", + "-Xep:IncompatibleArgumentType:ERROR", + "-Xep:IncompatibleModifiers:ERROR", + "-Xep:InconsistentCapitalization:WARN", + "-Xep:InconsistentHashCode:ERROR", + "-Xep:IncrementInForLoopAndHeader:ERROR", + "-Xep:IndexOfChar:ERROR", + "-Xep:InexactVarargsConditional:ERROR", + "-Xep:InfiniteRecursion:ERROR", + "-Xep:InheritDoc:ERROR", + "-Xep:InjectOnConstructorOfAbstractClass:ERROR", + "-Xep:InlineFormatString:ERROR", + "-Xep:InlineMeInliner:ERROR", + # don't want to add dependency to errorprone + "-Xep:InlineMeSuggester:OFF", + "-Xep:InlineMeValidator:ERROR", + "-Xep:InputStreamSlowMultibyteRead:ERROR", + "-Xep:InsecureCryptoUsage:ERROR", + "-Xep:InstanceOfAndCastMatchWrongType:ERROR", + "-Xep:InstantTemporalUnit:ERROR", + "-Xep:IntLongMath:ERROR", + "-Xep:InvalidBlockTag:ERROR", + "-Xep:InvalidInlineTag:ERROR", + "-Xep:InvalidJavaTimeConstant:ERROR", + "-Xep:InvalidLink:ERROR", + "-Xep:InvalidParam:ERROR", + "-Xep:InvalidPatternSyntax:ERROR", + "-Xep:InvalidThrows:ERROR", + "-Xep:InvalidThrowsLink:ERROR", + "-Xep:InvalidTimeZoneID:ERROR", + "-Xep:InvalidZoneId:ERROR", + "-Xep:IsInstanceIncompatibleType:ERROR", + "-Xep:IsInstanceOfClass:ERROR", + "-Xep:IsLoggableTagLength:ERROR", + "-Xep:IterableAndIterator:ERROR", + "-Xep:IterablePathParameter:ERROR", + "-Xep:JavaDurationGetSecondsGetNano:ERROR", + "-Xep:JavaDurationWithNanos:ERROR", + "-Xep:JavaDurationWithSeconds:ERROR", + "-Xep:JavaInstantGetSecondsGetNano:ERROR", + "-Xep:JavaLangClash:ERROR", + "-Xep:JavaLocalDateTimeGetNano:ERROR", + "-Xep:JavaLocalTimeGetNano:ERROR", + "-Xep:JavaPeriodGetDays:ERROR", + "-Xep:JavaTimeDefaultTimeZone:ERROR", + "-Xep:JavaUtilDate:WARN", + "-Xep:JdkObsolete:ERROR", + "-Xep:JodaConstructors:ERROR", + "-Xep:JodaDateTimeConstants:ERROR", + "-Xep:JodaDurationWithMillis:ERROR", + "-Xep:JodaInstantWithMillis:ERROR", + "-Xep:JodaNewPeriod:ERROR", + "-Xep:JodaPlusMinusLong:ERROR", + "-Xep:JodaTimeConverterManager:ERROR", + "-Xep:JodaToSelf:ERROR", + "-Xep:JodaWithDurationAddedLong:ERROR", + "-Xep:JUnit3FloatingPointComparisonWithoutDelta:ERROR", + "-Xep:JUnit3TestNotRun:ERROR", + "-Xep:JUnit4ClassAnnotationNonStatic:ERROR", + "-Xep:JUnit4ClassUsedInJUnit3:ERROR", + "-Xep:JUnit4SetUpNotRun:ERROR", + "-Xep:JUnit4TearDownNotRun:ERROR", + "-Xep:JUnit4TestNotRun:ERROR", + "-Xep:JUnit4TestsNotRunWithinEnclosed:ERROR", + "-Xep:JUnitAmbiguousTestClass:ERROR", + "-Xep:JUnitAssertSameCheck:ERROR", + "-Xep:JUnitParameterMethodNotFound:ERROR", + "-Xep:LiteByteStringUtf8:ERROR", + "-Xep:LiteEnumValueOf:ERROR", + "-Xep:LiteProtoToString:ERROR", + "-Xep:LocalDateTemporalAmount:ERROR", + "-Xep:LockNotBeforeTry:ERROR", + "-Xep:LockOnBoxedPrimitive:ERROR", + "-Xep:LogicalAssignment:ERROR", + "-Xep:LongFloatConversion:ERROR", + "-Xep:LongLiteralLowerCaseSuffix:ERROR", + "-Xep:LoopConditionChecker:ERROR", + "-Xep:LoopOverCharArray:ERROR", + "-Xep:LossyPrimitiveCompare:ERROR", + "-Xep:MathAbsoluteRandom:ERROR", + "-Xep:MathRoundIntLong:ERROR", + "-Xep:MemoizeConstantVisitorStateLookups:ERROR", + "-Xep:MislabeledAndroidString:ERROR", + "-Xep:MissingCasesInEnumSwitch:ERROR", + "-Xep:MissingFail:ERROR", + "-Xep:MissingOverride:ERROR", + "-Xep:MissingSummary:WARN", + "-Xep:MissingSuperCall:ERROR", + "-Xep:MissingTestCall:ERROR", + "-Xep:MisusedDayOfYear:ERROR", + "-Xep:MisusedWeekYear:ERROR", + "-Xep:MixedDescriptors:ERROR", + "-Xep:MixedMutabilityReturnType:WARN", + "-Xep:MockitoUsage:ERROR", + "-Xep:ModifiedButNotUsed:ERROR", + "-Xep:ModifyCollectionInEnhancedForLoop:ERROR", + "-Xep:ModifyingCollectionWithItself:ERROR", + "-Xep:ModifySourceCollectionInStream:ERROR", + "-Xep:MultipleParallelOrSequentialCalls:ERROR", + "-Xep:MultipleUnaryOperatorsInMethodCall:ERROR", + "-Xep:MustBeClosedChecker:ERROR", + "-Xep:MutableConstantField:ERROR", + # Java provides no good alternative + "-Xep:MutablePublicArray:OFF", + "-Xep:NarrowingCompoundAssignment:ERROR", + "-Xep:NCopiesOfChar:ERROR", + "-Xep:NestedInstanceOfConditions:ERROR", + "-Xep:NonAtomicVolatileUpdate:ERROR", + "-Xep:NonCanonicalStaticImport:ERROR", + "-Xep:NonCanonicalType:ERROR", + "-Xep:NonFinalCompileTimeConstant:ERROR", + "-Xep:NonOverridingEquals:ERROR", + "-Xep:NonRuntimeAnnotation:ERROR", + "-Xep:NullableConstructor:ERROR", + "-Xep:NullablePrimitive:ERROR", + "-Xep:NullablePrimitiveArray:ERROR", + "-Xep:NullableVoid:ERROR", + "-Xep:NullOptional:ERROR", + "-Xep:NullTernary:ERROR", + "-Xep:ObjectEqualsForPrimitives:ERROR", + "-Xep:ObjectsHashCodePrimitive:ERROR", + "-Xep:ObjectToString:ERROR", + "-Xep:OperatorPrecedence:ERROR", + "-Xep:OptionalEquality:ERROR", + "-Xep:OptionalMapToOptional:ERROR", + "-Xep:OptionalMapUnusedValue:ERROR", + "-Xep:OptionalNotPresent:ERROR", + "-Xep:OptionalOfRedundantMethod:ERROR", + "-Xep:OrphanedFormatString:ERROR", + "-Xep:OutlineNone:ERROR", + "-Xep:OverlappingQualifierAndScopeAnnotation:ERROR", + "-Xep:Overrides:ERROR", + "-Xep:OverridesGuiceInjectableMethod:ERROR", + "-Xep:OverridesJavaxInjectableMethod:ERROR", + "-Xep:OverrideThrowableToString:ERROR", + "-Xep:PackageInfo:ERROR", + "-Xep:ParameterName:ERROR", + "-Xep:ParametersButNotParameterized:ERROR", + "-Xep:ParcelableCreator:ERROR", + "-Xep:PeriodFrom:ERROR", + "-Xep:PeriodGetTemporalUnit:ERROR", + "-Xep:PeriodTimeMath:ERROR", + "-Xep:PreconditionsCheckNotNullRepeated:ERROR", + "-Xep:PreconditionsInvalidPlaceholder:ERROR", + "-Xep:PreferredInterfaceType:OFF", + "-Xep:PrimitiveAtomicReference:ERROR", + "-Xep:PrivateSecurityContractProtoAccess:ERROR", + "-Xep:ProtectedMembersInFinalClass:ERROR", + "-Xep:ProtoBuilderReturnValueIgnored:ERROR", + "-Xep:ProtocolBufferOrdinal:ERROR", + "-Xep:ProtoDurationGetSecondsGetNano:ERROR", + "-Xep:ProtoFieldNullComparison:ERROR", + "-Xep:ProtoFieldPreconditionsCheckNotNull:ERROR", + "-Xep:ProtoRedundantSet:ERROR", + "-Xep:ProtoStringFieldReferenceEquality:ERROR", + "-Xep:ProtoTimestampGetSecondsGetNano:ERROR", + "-Xep:ProtoTruthMixedDescriptors:ERROR", + "-Xep:ProvidesMethodOutsideOfModule:ERROR", + "-Xep:RandomCast:ERROR", + "-Xep:RandomModInteger:ERROR", + "-Xep:ReachabilityFenceUsage:ERROR", + "-Xep:RectIntersectReturnValueIgnored:ERROR", + "-Xep:ReferenceEquality:ERROR", + "-Xep:RefersToDaggerCodegen:ERROR", + "-Xep:RemovedInJDK11:ERROR", + "-Xep:RequiredModifiers:ERROR", + "-Xep:RestrictedApiChecker:ERROR", + "-Xep:RethrowReflectiveOperationExceptionAsLinkageError:ERROR", + "-Xep:ReturnFromVoid:ERROR", + "-Xep:ReturnValueIgnored:ERROR", + "-Xep:RxReturnValueIgnored:ERROR", + "-Xep:SameNameButDifferent:ERROR", + "-Xep:SelfAssignment:ERROR", + "-Xep:SelfComparison:ERROR", + "-Xep:SelfEquals:ERROR", + "-Xep:ShortCircuitBoolean:ERROR", + "-Xep:ShouldHaveEvenArgs:ERROR", + "-Xep:SizeGreaterThanOrEqualsZero:ERROR", + "-Xep:StaticAssignmentInConstructor:ERROR", + "-Xep:StaticGuardedByInstance:ERROR", + "-Xep:StaticMockMember:ERROR", + "-Xep:StaticQualifiedUsingExpression:ERROR", + "-Xep:StreamToString:ERROR", + "-Xep:StringBuilderInitWithChar:ERROR", + "-Xep:StringEquality:ERROR", + "-Xep:StringSplitter:WARN", + "-Xep:SubstringOfZero:ERROR", + "-Xep:SuppressWarningsDeprecated:ERROR", + "-Xep:SwigMemoryLeak:ERROR", + "-Xep:SynchronizeOnNonFinalField:ERROR", + "-Xep:TemporalAccessorGetChronoField:ERROR", + "-Xep:TestParametersNotInitialized:ERROR", + "-Xep:TheoryButNoTheories:ERROR", + "-Xep:ThreadJoinLoop:ERROR", + "-Xep:ThreadLocalUsage:ERROR", + "-Xep:ThreadPriorityCheck:ERROR", + "-Xep:ThreeLetterTimeZoneID:WARN", + "-Xep:ThrowIfUncheckedKnownChecked:ERROR", + "-Xep:ThrowNull:ERROR", + "-Xep:TimeUnitConversionChecker:ERROR", + "-Xep:ToStringReturnsNull:ERROR", + "-Xep:TreeToString:ERROR", + "-Xep:TruthAssertExpected:ERROR", + "-Xep:TruthConstantAsserts:ERROR", + "-Xep:TruthGetOrDefault:ERROR", + "-Xep:TruthIncompatibleType:ERROR", + "-Xep:TruthSelfEquals:ERROR", + "-Xep:TryFailThrowable:ERROR", + "-Xep:TypeEquals:ERROR", + "-Xep:TypeNameShadowing:ERROR", + "-Xep:TypeParameterQualifier:ERROR", + "-Xep:TypeParameterShadowing:ERROR", + "-Xep:TypeParameterUnusedInFormals:ERROR", + "-Xep:UndefinedEquals:WARN", + "-Xep:UnescapedEntity:WARN", + "-Xep:UnnecessaryAssignment:ERROR", + "-Xep:UnnecessaryCheckNotNull:ERROR", + "-Xep:UnnecessaryLambda:ERROR", + "-Xep:UnnecessaryMethodInvocationMatcher:ERROR", + "-Xep:UnnecessaryMethodReference:ERROR", + "-Xep:UnnecessaryParentheses:ERROR", + "-Xep:UnnecessaryTypeArgument:ERROR", + "-Xep:UnrecognisedJavadocTag:ERROR", + "-Xep:UnsafeFinalization:ERROR", + "-Xep:UnsafeReflectiveConstructionCast:ERROR", + "-Xep:UnsynchronizedOverridesSynchronized:ERROR", + "-Xep:UnusedAnonymousClass:ERROR", + "-Xep:UnusedCollectionModifiedInPlace:ERROR", + "-Xep:UnusedException:ERROR", + "-Xep:UnusedMethod:WARN", + "-Xep:UnusedNestedClass:ERROR", + "-Xep:UnusedVariable:ERROR", + "-Xep:URLEqualsHashCode:ERROR", + "-Xep:UseBinds:ERROR", + "-Xep:UseCorrectAssertInTests:ERROR", + "-Xep:VariableNameSameAsType:ERROR", + "-Xep:VarTypeName:ERROR", + "-Xep:WaitNotInLoop:ERROR", + "-Xep:WakelockReleasedDangerously:ERROR", + "-Xep:WildcardImport:ERROR", + "-Xep:WithSignatureDiscouraged:ERROR", + "-Xep:WrongOneof:ERROR", + "-Xep:XorPower:ERROR", + "-Xep:ZoneIdOfZ:ERROR", ] - -exclude_in_tests = ["-Xep:EmptyBlockTag:WARN", - "-Xep:MissingSummary:WARN"] +exclude_in_tests = [ + "-Xep:EmptyBlockTag:WARN", + "-Xep:MissingSummary:WARN", +] java_package_configuration( name = "error_prone", @@ -436,7 +437,7 @@ java_package_configuration( name = "error_prone_tests", - javacopts = [ check for check in errorprone_checks if check not in exclude_in_tests], + javacopts = [check for check in errorprone_checks if check not in exclude_in_tests], packages = ["error_prone_packages_test"], )