Revision 9a4df389cb5f88ab49e8b36e089fd734aaae4dfc authored by Thai Duong on 08 June 2018, 23:01:07 UTC, committed by Charles Lee on 08 June 2018, 23:28:47 UTC
See https://github.com/facebook/react-native/issues/19485#issuecomment-395882343 and https://stackoverflow.com/questions/50563338/could-not-find-runtime-jar-android-arch-lifecycleruntime1-0-0/50565155#50565155 PiperOrigin-RevId: 199865197 GitOrigin-RevId: fb3a6d90ed7293cd62b2ccd1bafb76845847c0f0
1 parent b46e5e9
javac.bzl
"""Build definitions for javac related operations in tink."""
XLINT_OPTS = [
"-Werror",
"-Xlint:all",
"-Xlint:-serial",
"-Xlint:-classfile",
]
# errorprone checks primarily related to coding style, enabled to
# improve uniformity.
EP_STYLE_CHECKS = [
"-Xep:ConstantField:ERROR",
"-Xep:LoggerVariableCase:ERROR",
"-Xep:MissingDefault:ERROR",
"-Xep:MixedArrayDimensions:ERROR",
"-Xep:MultiVariableDeclaration:ERROR",
"-Xep:MultipleTopLevelClasses:ERROR",
"-Xep:PackageLocation:ERROR",
"-Xep:RemoveUnusedImports:ERROR",
"-Xep:UnnecessaryStaticImport:ERROR",
"-Xep:WildcardImport:ERROR",
]
# additional checks with occasional false positives, enabled
# for consistent coding style.
EP_SUGGESTED_CHECKS = [
"-Xep:AmbiguousMethodReference:ERROR",
"-Xep:ArgumentSelectionDefectChecker:ERROR",
"-Xep:AssertEqualsArgumentOrderChecker:ERROR",
"-Xep:AssistedInjectAndInjectOnConstructors:ERROR",
"-Xep:BadAnnotationImplementation:ERROR",
"-Xep:BadComparable:ERROR",
"-Xep:BindingToUnqualifiedCommonType:ERROR",
"-Xep:BoxedPrimitiveConstructor:ERROR",
"-Xep:CannotMockFinalClass:ERROR",
"-Xep:ClassCanBeStatic:ERROR",
"-Xep:ClassNewInstance:ERROR",
"-Xep:DefaultCharset:ERROR",
"-Xep:DoNotMock_ForTricorder:ERROR",
"-Xep:DoubleCheckedLocking:ERROR",
"-Xep:ElementsCountedInLoop:ERROR",
"-Xep:EqualsHashCode:ERROR",
"-Xep:ExpectedExceptionChecker:ERROR",
"-Xep:Finally:ERROR",
"-Xep:FloatingPointLiteralPrecision:ERROR",
"-Xep:FragmentInjection:ERROR",
"-Xep:FragmentNotInstantiable:ERROR",
"-Xep:FunctionalInterfaceClash:ERROR",
"-Xep:FutureReturnValueIgnored:ERROR",
"-Xep:GetClassOnEnum:ERROR",
"-Xep:ImmutableAnnotationChecker:ERROR",
"-Xep:ImmutableEnumChecker:ERROR",
"-Xep:IncompatibleModifiers:ERROR",
"-Xep:InjectOnConstructorOfAbstractClass:ERROR",
"-Xep:InjectScopeOrQualifierAnnotationRetention:ERROR",
"-Xep:InputStreamSlowMultibyteRead:ERROR",
"-Xep:IterableAndIterator:ERROR",
"-Xep:JUnit3FloatingPointComparisonWithoutDelta:ERROR",
"-Xep:JUnit4SuppressWithoutIgnore:ERROR",
"-Xep:JUnitAmbiguousTestClass:ERROR",
"-Xep:JavaLangClash:ERROR",
"-Xep:JavaNetIdn:ERROR",
"-Xep:LiteralClassName:ERROR",
"-Xep:LogicalAssignment:ERROR",
"-Xep:MissingFail:ERROR",
"-Xep:MissingOverride:ERROR",
"-Xep:MisusedFormattingLogger:ERROR",
"-Xep:MutableConstantField:ERROR",
"-Xep:NamedParameters:ERROR",
"-Xep:NarrowingCompoundAssignment:ERROR",
"-Xep:NonAtomicVolatileUpdate:ERROR",
"-Xep:NonOverridingEquals:ERROR",
"-Xep:NullableConstructor:ERROR",
"-Xep:NullablePrimitive:ERROR",
"-Xep:NullableVoid:ERROR",
"-Xep:OperatorPrecedence:ERROR",
"-Xep:OverridesGuiceInjectableMethod:ERROR",
"-Xep:PreconditionsInvalidPlaceholder:ERROR",
"-Xep:PredicateIncompatibleType:ERROR",
"-Xep:ProduceMethodShouldBeAnnotated:ERROR",
"-Xep:ProtoFieldPreconditionsCheckNotNull:ERROR",
"-Xep:QualifierWithTypeUse:ERROR",
"-Xep:ReferenceEquality:ERROR",
"-Xep:RequiredModifiers:ERROR",
"-Xep:ShortCircuitBoolean:ERROR",
"-Xep:SimpleDateFormatConstant:ERROR",
"-Xep:StaticFlagUsage:ERROR",
"-Xep:StaticGuardedByInstance:ERROR",
"-Xep:StaticQualifiedUsingExpression:ERROR",
"-Xep:SynchronizeOnNonFinalField:ERROR",
"-Xep:TestExceptionChecker:ERROR",
"-Xep:TruthConstantAsserts:ERROR",
"-Xep:TypeParameterShadowing:ERROR",
"-Xep:TypeParameterUnusedInFormals:ERROR",
"-Xep:URLEqualsHashCode:ERROR",
"-Xep:UnsafeSdkVersionCheck:ERROR",
"-Xep:UnsynchronizedOverridesSynchronized:ERROR",
"-Xep:WaitNotInLoop:ERROR",
]
EP_OPTS = EP_STYLE_CHECKS + EP_SUGGESTED_CHECKS
SOURCE_7_TARGET_7 = [
"-source 1.7",
"-target 1.7",
]
JAVACOPTS = XLINT_OPTS + EP_OPTS
JAVACOPTS_OSS = XLINT_OPTS + EP_OPTS + SOURCE_7_TARGET_7
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...