diff options
author | Bogdan Drutu <bdrutu@google.com> | 2018-01-17 10:03:55 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-17 10:03:55 -0800 |
commit | 26232c4d43e7351bef06ffb2e1c20c5b90f6cf4c (patch) | |
tree | a1551fe63773a8a80ed3b5b0252dbc75b39970ed /gradle | |
parent | 64d05837e565b336865a82a570115d752b88c1ef (diff) | |
download | opencensus-java-26232c4d43e7351bef06ffb2e1c20c5b90f6cf4c.tar.gz |
Update errorprone, google cloud java, grpc versions. (#931)
Diffstat (limited to 'gradle')
-rw-r--r-- | gradle/errorprone/experimental_errors | 2 | ||||
-rw-r--r-- | gradle/errorprone/experimental_suggestions | 10 | ||||
-rw-r--r-- | gradle/errorprone/experimental_warnings | 3 | ||||
-rw-r--r-- | gradle/errorprone/warnings | 19 |
4 files changed, 27 insertions, 7 deletions
diff --git a/gradle/errorprone/experimental_errors b/gradle/errorprone/experimental_errors index 5ce6e181..f791feda 100644 --- a/gradle/errorprone/experimental_errors +++ b/gradle/errorprone/experimental_errors @@ -22,6 +22,6 @@ errorProneExperimentalErrors = \ -Xep:NumericEquality:ERROR,\ -Xep:ParameterPackage:ERROR,\ -Xep:ProtoStringFieldReferenceEquality:ERROR,\ --Xep:QualifierOrScopeOnInjectMethod:ERROR,\ +-Xep:RestrictTo:ERROR,\ -Xep:StaticOrDefaultInterfaceMethod:ERROR,\ -Xep:UnlockMethod:ERROR diff --git a/gradle/errorprone/experimental_suggestions b/gradle/errorprone/experimental_suggestions index c330674c..d44049e9 100644 --- a/gradle/errorprone/experimental_suggestions +++ b/gradle/errorprone/experimental_suggestions @@ -1,13 +1,15 @@ -# FieldMissingNullable is turned off due to -# https://github.com/google/error-prone/issues/823. +# FieldMissingNullable is marked as WARN +# detects errors in autovalue generated code. # ReturnMissingNullable is turned off because it # conflicts with Checker Framework null analysis. errorProneExperimentalSuggestions = \ +-Xep:BooleanParameter:ERROR,\ -Xep:ConstantField:ERROR,\ -Xep:EmptySetMultibindingContributions:ERROR,\ --Xep:FieldMissingNullable:OFF,\ +-Xep:FieldMissingNullable:WARN,\ +-Xep:LambdaFunctionalInterface:ERROR,\ -Xep:MethodCanBeStatic:ERROR,\ -Xep:MixedArrayDimensions:ERROR,\ -Xep:MultiVariableDeclaration:ERROR,\ @@ -20,7 +22,9 @@ errorProneExperimentalSuggestions = \ -Xep:PrivateConstructorForUtilityClass:ERROR,\ -Xep:RemoveUnusedImports:ERROR,\ -Xep:ReturnMissingNullable:OFF,\ +-Xep:SwitchDefault:ERROR,\ -Xep:ThrowsUncheckedException:ERROR,\ +-Xep:TypeParameterNaming:ERROR,\ -Xep:UngroupedOverloads:ERROR,\ -Xep:UnnecessarySetDefault:ERROR,\ -Xep:UnnecessaryStaticImport:ERROR,\ diff --git a/gradle/errorprone/experimental_warnings b/gradle/errorprone/experimental_warnings index b5a7df2b..c89cf2f1 100644 --- a/gradle/errorprone/experimental_warnings +++ b/gradle/errorprone/experimental_warnings @@ -2,11 +2,13 @@ errorProneExperimentalWarnings = \ -Xep:AssertFalse:ERROR,\ -Xep:AssistedInjectAndInjectOnConstructors:ERROR,\ -Xep:BigDecimalLiteralDouble:ERROR,\ +-Xep:BinderIdentityRestoredDangerously:ERROR,\ -Xep:BindingToUnqualifiedCommonType:ERROR,\ -Xep:ConstructorInvokesOverridable:ERROR,\ -Xep:ConstructorLeaksThis:ERROR,\ -Xep:EmptyTopLevelDeclaration:ERROR,\ -Xep:ExpectedExceptionChecker:ERROR,\ +-Xep:FunctionalInterfaceClash:ERROR,\ -Xep:HardCodedSdCardPath:ERROR,\ -Xep:InconsistentOverloads:ERROR,\ -Xep:MissingDefault:ERROR,\ @@ -18,6 +20,7 @@ errorProneExperimentalWarnings = \ -Xep:RedundantThrows:ERROR,\ -Xep:StaticQualifiedUsingExpression:ERROR,\ -Xep:StringEquality:ERROR,\ +-Xep:StringSplit:ERROR,\ -Xep:TestExceptionChecker:ERROR,\ -Xep:UnnecessaryDefaultInEnumSwitch:ERROR,\ -Xep:Var:OFF diff --git a/gradle/errorprone/warnings b/gradle/errorprone/warnings index da7302dd..3a8bb2f5 100644 --- a/gradle/errorprone/warnings +++ b/gradle/errorprone/warnings @@ -1,3 +1,6 @@ +# NarrowingCompoundAssignment is marked as WARN +# detects errors in autovalue generated code. + errorProneWarnings = \ -Xep:AmbiguousMethodReference:ERROR,\ -Xep:ArgumentSelectionDefectChecker:ERROR,\ @@ -8,22 +11,26 @@ errorProneWarnings = \ -Xep:BoxedPrimitiveConstructor:ERROR,\ -Xep:CannotMockFinalClass:ERROR,\ -Xep:CanonicalDuration:ERROR,\ +-Xep:CatchFail:ERROR,\ -Xep:ClassCanBeStatic:ERROR,\ -Xep:ClassNewInstance:ERROR,\ -Xep:CollectionToArraySafeParameter:ERROR,\ -Xep:CollectorShouldNotUseState:ERROR,\ -Xep:ComparableAndComparator:ERROR,\ +-Xep:DateFormatConstant:ERROR,\ -Xep:DefaultCharset:ERROR,\ -Xep:DoubleCheckedLocking:ERROR,\ -Xep:EqualsHashCode:ERROR,\ -Xep:EqualsIncompatibleType:ERROR,\ +-Xep:FallThrough:ERROR,\ -Xep:Finally:ERROR,\ +-Xep:FloatCast:ERROR,\ -Xep:FloatingPointLiteralPrecision:ERROR,\ -Xep:FragmentInjection:ERROR,\ -Xep:FragmentNotInstantiable:ERROR,\ --Xep:FunctionalInterfaceClash:ERROR,\ -Xep:FutureReturnValueIgnored:ERROR,\ -Xep:GetClassOnEnum:ERROR,\ +-Xep:HidingField:ERROR,\ -Xep:ImmutableAnnotationChecker:ERROR,\ -Xep:ImmutableEnumChecker:ERROR,\ -Xep:IncompatibleModifiers:ERROR,\ @@ -39,11 +46,12 @@ errorProneWarnings = \ -Xep:JavaLangClash:ERROR,\ -Xep:JdkObsolete:ERROR,\ -Xep:LogicalAssignment:ERROR,\ +-Xep:MissingCasesInEnumSwitch:ERROR,\ -Xep:MissingFail:ERROR,\ -Xep:MissingOverride:ERROR,\ +-Xep:ModifyCollectionInEnhancedForLoop:ERROR,\ -Xep:MultipleParallelOrSequentialCalls:ERROR,\ -Xep:MutableConstantField:ERROR,\ --Xep:NamedParameters:ERROR,\ -Xep:NarrowingCompoundAssignment:WARN,\ -Xep:NestedInstanceOfConditions:ERROR,\ -Xep:NonAtomicVolatileUpdate:ERROR,\ @@ -59,17 +67,22 @@ errorProneWarnings = \ -Xep:ParameterName:ERROR,\ -Xep:PreconditionsInvalidPlaceholder:ERROR,\ -Xep:ProtoFieldPreconditionsCheckNotNull:ERROR,\ +-Xep:QualifierOrScopeOnInjectMethod:ERROR,\ +-Xep:ReachabilityFenceUsage:ERROR,\ -Xep:ReferenceEquality:ERROR,\ -Xep:RequiredModifiers:ERROR,\ -Xep:ShortCircuitBoolean:ERROR,\ --Xep:SimpleDateFormatConstant:ERROR,\ -Xep:StaticGuardedByInstance:ERROR,\ +-Xep:StringSplitter:ERROR,\ -Xep:SynchronizeOnNonFinalField:ERROR,\ -Xep:ThreadJoinLoop:ERROR,\ +-Xep:ThreadLocalUsage:ERROR,\ +-Xep:ThreeLetterTimeZoneID:ERROR,\ -Xep:TruthConstantAsserts:ERROR,\ -Xep:TypeParameterShadowing:ERROR,\ -Xep:TypeParameterUnusedInFormals:ERROR,\ -Xep:URLEqualsHashCode:ERROR,\ +-Xep:UnsafeFinalization:ERROR,\ -Xep:UnsynchronizedOverridesSynchronized:ERROR,\ -Xep:UseCorrectAssertInTests:ERROR,\ -Xep:WaitNotInLoop:ERROR,\ |