aboutsummaryrefslogtreecommitdiff
path: root/gradle
diff options
context:
space:
mode:
authorBogdan Drutu <bdrutu@google.com>2017-03-23 17:13:53 -0700
committerGitHub <noreply@github.com>2017-03-23 17:13:53 -0700
commit14920b483eb85d440c1f501eda21023d15a7ea6f (patch)
tree2e20b04f4cee4ad8a8b9d1eb8924eaf14c6653d9 /gradle
parent3a52e834c3648ee8a6b515293a755b26e0c97041 (diff)
downloadopencensus-java-14920b483eb85d440c1f501eda21023d15a7ea6f.tar.gz
Enable all warnings including experimental for errorprone. (#167)
Diffstat (limited to 'gradle')
-rw-r--r--gradle/errorprone/experimental_errors27
-rw-r--r--gradle/errorprone/experimental_warnings19
-rw-r--r--gradle/errorprone/warnings54
3 files changed, 100 insertions, 0 deletions
diff --git a/gradle/errorprone/experimental_errors b/gradle/errorprone/experimental_errors
new file mode 100644
index 00000000..58fa533e
--- /dev/null
+++ b/gradle/errorprone/experimental_errors
@@ -0,0 +1,27 @@
+errorProneExperimentalErrors = \
+-Xep:ArgumentParameterSwap:ERROR,\
+-Xep:AssistedInjectAndInjectOnSameConstructor:ERROR,\
+-Xep:AutoFactoryAtInject:ERROR,\
+-Xep:ClassName:ERROR,\
+-Xep:ComparisonContractViolated:ERROR,\
+-Xep:DepAnn:ERROR,\
+-Xep:DivZero:ERROR,\
+-Xep:EmptyIf:ERROR,\
+-Xep:InjectInvalidTargetingOnScopingAnnotation:ERROR,\
+-Xep:InjectMoreThanOneQualifier:ERROR,\
+-Xep:InjectScopeAnnotationOnInterfaceOrAbstractClass:ERROR,\
+-Xep:InjectScopeOrQualifierAnnotationRetention:ERROR,\
+-Xep:InjectedConstructorAnnotations:ERROR,\
+-Xep:InsecureCryptoUsage:ERROR,\
+-Xep:JMockTestWithoutRunWithOrRuleAnnotation:ERROR,\
+-Xep:JavaxInjectOnFinalField:ERROR,\
+-Xep:LockMethodChecker:ERROR,\
+-Xep:LongLiteralLowerCaseSuffix:ERROR,\
+-Xep:NoAllocation:ERROR,\
+-Xep:NonRuntimeAnnotation:ERROR,\
+-Xep:NumericEquality:ERROR,\
+-Xep:ParameterPackage:OFF,\
+-Xep:ProtoStringFieldReferenceEquality:ERROR,\
+-Xep:QualifierOnMethodWithoutProvides:ERROR,\
+-Xep:StaticOrDefaultInterfaceMethod:ERROR,\
+-Xep:UnlockMethod:ERROR
diff --git a/gradle/errorprone/experimental_warnings b/gradle/errorprone/experimental_warnings
new file mode 100644
index 00000000..fc304d3a
--- /dev/null
+++ b/gradle/errorprone/experimental_warnings
@@ -0,0 +1,19 @@
+errorProneExperimentalWarnings = \
+-Xep:ArgumentParameterMismatch:ERROR,\
+-Xep:AssertFalse:ERROR,\
+-Xep:AssistedInjectAndInjectOnConstructors:ERROR,\
+-Xep:BigDecimalLiteralDouble:ERROR,\
+-Xep:BindingToUnqualifiedCommonType:ERROR,\
+-Xep:EmptyTopLevelDeclaration:ERROR,\
+-Xep:ExpectedExceptionChecker:ERROR,\
+-Xep:HardCodedSdCardPath:ERROR,\
+-Xep:MissingDefault:OFF,\
+-Xep:NonCanonicalStaticMemberImport:ERROR,\
+-Xep:PrimitiveArrayPassedToVarargsMethod:ERROR,\
+-Xep:QualifierWithTypeUse:ERROR,\
+-Xep:RedundantThrows:ERROR,\
+-Xep:StaticQualifiedUsingExpression:ERROR,\
+-Xep:StringEquality:ERROR,\
+-Xep:TestExceptionChecker:ERROR,\
+-Xep:UnnecessaryDefaultInEnumSwitch:ERROR,\
+-Xep:Var:OFF
diff --git a/gradle/errorprone/warnings b/gradle/errorprone/warnings
new file mode 100644
index 00000000..25baaf06
--- /dev/null
+++ b/gradle/errorprone/warnings
@@ -0,0 +1,54 @@
+errorProneWarnings = \
+-Xep:AmbiguousMethodReference:ERROR,\
+-Xep:BadAnnotationImplementation:ERROR,\
+-Xep:BadComparable:ERROR,\
+-Xep:BoxedPrimitiveConstructor:ERROR,\
+-Xep:CannotMockFinalClass:ERROR,\
+-Xep:ClassCanBeStatic:ERROR,\
+-Xep:ClassNewInstance:ERROR,\
+-Xep:DefaultCharset:ERROR,\
+-Xep:DoubleCheckedLocking:ERROR,\
+-Xep:ElementsCountedInLoop:ERROR,\
+-Xep:EqualsHashCode:ERROR,\
+-Xep:EqualsIncompatibleType: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:InputStreamSlowMultibyteRead:ERROR,\
+-Xep:IterableAndIterator:ERROR,\
+-Xep:JUnit3FloatingPointComparisonWithoutDelta:ERROR,\
+-Xep:JUnitAmbiguousTestClass:ERROR,\
+-Xep:LiteralClassName:ERROR,\
+-Xep:MissingFail:ERROR,\
+-Xep:MissingOverride:ERROR,\
+-Xep:MutableConstantField: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:ProtoFieldPreconditionsCheckNotNull:ERROR,\
+-Xep:ProtocolBufferOrdinal:ERROR,\
+-Xep:ReferenceEquality:ERROR,\
+-Xep:RequiredModifiers:ERROR,\
+-Xep:ShortCircuitBoolean:ERROR,\
+-Xep:SimpleDateFormatConstant:ERROR,\
+-Xep:StaticGuardedByInstance:ERROR,\
+-Xep:SynchronizeOnNonFinalField:ERROR,\
+-Xep:TruthConstantAsserts:ERROR,\
+-Xep:TypeParameterShadowing:ERROR,\
+-Xep:TypeParameterUnusedInFormals:ERROR,\
+-Xep:URLEqualsHashCode:ERROR,\
+-Xep:UnsynchronizedOverridesSynchronized:ERROR,\
+-Xep:WaitNotInLoop:ERROR