diff options
author | Hailong Wen <hailongwen@google.com> | 2017-12-07 14:54:05 -0800 |
---|---|---|
committer | Hailong Wen <hailongwen@google.com> | 2017-12-07 14:54:05 -0800 |
commit | f08d21c38d840088a0b67ae2bf07aeab4ad7b77f (patch) | |
tree | e90784ae2a950acf2d788e774aac87635f0c9386 /examples/gradle | |
parent | c0be5b44ec9d787e0834dc418381f0a5b87fca85 (diff) | |
download | opencensus-java-f08d21c38d840088a0b67ae2bf07aeab4ad7b77f.tar.gz |
Address comments from bogdan and sebright.
* Remove unnecessary plugins.
* Reuse existing checkstyle.xml and errorprone properties from main project.
* Add script in travis and appveyor to build examples.
Diffstat (limited to 'examples/gradle')
-rw-r--r-- | examples/gradle/errorprone/experimental_errors | 27 | ||||
-rw-r--r-- | examples/gradle/errorprone/experimental_suggestions | 25 | ||||
-rw-r--r-- | examples/gradle/errorprone/experimental_warnings | 23 | ||||
-rw-r--r-- | examples/gradle/errorprone/warnings | 76 |
4 files changed, 0 insertions, 151 deletions
diff --git a/examples/gradle/errorprone/experimental_errors b/examples/gradle/errorprone/experimental_errors deleted file mode 100644 index 5ce6e181..00000000 --- a/examples/gradle/errorprone/experimental_errors +++ /dev/null @@ -1,27 +0,0 @@ -errorProneExperimentalErrors = \ --Xep:AssistedInjectAndInjectOnSameConstructor:ERROR,\ --Xep:AutoFactoryAtInject:ERROR,\ --Xep:ClassName:ERROR,\ --Xep:ComparisonContractViolated:ERROR,\ --Xep:DepAnn:ERROR,\ --Xep:DivZero:ERROR,\ --Xep:EmptyIf:ERROR,\ --Xep:FuzzyEqualsShouldNotBeUsedInEqualsMethod:ERROR,\ --Xep:InjectInvalidTargetingOnScopingAnnotation:ERROR,\ --Xep:InjectMoreThanOneQualifier:ERROR,\ --Xep:InjectScopeAnnotationOnInterfaceOrAbstractClass:ERROR,\ --Xep:InjectScopeOrQualifierAnnotationRetention:ERROR,\ --Xep:InjectedConstructorAnnotations:ERROR,\ --Xep:InsecureCryptoUsage:ERROR,\ --Xep:IterablePathParameter:ERROR,\ --Xep:JMockTestWithoutRunWithOrRuleAnnotation:ERROR,\ --Xep:JavaxInjectOnFinalField:ERROR,\ --Xep:LockMethodChecker:ERROR,\ --Xep:LongLiteralLowerCaseSuffix:ERROR,\ --Xep:NoAllocation:ERROR,\ --Xep:NumericEquality:ERROR,\ --Xep:ParameterPackage:ERROR,\ --Xep:ProtoStringFieldReferenceEquality:ERROR,\ --Xep:QualifierOrScopeOnInjectMethod:ERROR,\ --Xep:StaticOrDefaultInterfaceMethod:ERROR,\ --Xep:UnlockMethod:ERROR diff --git a/examples/gradle/errorprone/experimental_suggestions b/examples/gradle/errorprone/experimental_suggestions deleted file mode 100644 index 1330b843..00000000 --- a/examples/gradle/errorprone/experimental_suggestions +++ /dev/null @@ -1,25 +0,0 @@ -# FieldMissingNullable is turned off due to -# https://github.com/google/error-prone/issues/823. - -errorProneExperimentalSuggestions = \ --Xep:ConstantField:ERROR,\ --Xep:EmptySetMultibindingContributions:ERROR,\ --Xep:FieldMissingNullable:OFF,\ --Xep:MethodCanBeStatic:ERROR,\ --Xep:MixedArrayDimensions:ERROR,\ --Xep:MultiVariableDeclaration:ERROR,\ --Xep:MultipleTopLevelClasses:ERROR,\ --Xep:MultipleUnaryOperatorsInMethodCall:ERROR,\ --Xep:PackageLocation:ERROR,\ --Xep:ParameterComment:ERROR,\ --Xep:ParameterNotNullable:ERROR,\ --Xep:PrivateConstructorForNoninstantiableModuleTest:ERROR,\ --Xep:PrivateConstructorForUtilityClass:ERROR,\ --Xep:RemoveUnusedImports:ERROR,\ --Xep:ReturnMissingNullable:ERROR,\ --Xep:ThrowsUncheckedException:ERROR,\ --Xep:UngroupedOverloads:ERROR,\ --Xep:UnnecessarySetDefault:ERROR,\ --Xep:UnnecessaryStaticImport:ERROR,\ --Xep:UseBinds:ERROR,\ --Xep:WildcardImport:ERROR diff --git a/examples/gradle/errorprone/experimental_warnings b/examples/gradle/errorprone/experimental_warnings deleted file mode 100644 index b5a7df2b..00000000 --- a/examples/gradle/errorprone/experimental_warnings +++ /dev/null @@ -1,23 +0,0 @@ -errorProneExperimentalWarnings = \ --Xep:AssertFalse:ERROR,\ --Xep:AssistedInjectAndInjectOnConstructors:ERROR,\ --Xep:BigDecimalLiteralDouble:ERROR,\ --Xep:BindingToUnqualifiedCommonType:ERROR,\ --Xep:ConstructorInvokesOverridable:ERROR,\ --Xep:ConstructorLeaksThis:ERROR,\ --Xep:EmptyTopLevelDeclaration:ERROR,\ --Xep:ExpectedExceptionChecker:ERROR,\ --Xep:HardCodedSdCardPath:ERROR,\ --Xep:InconsistentOverloads:ERROR,\ --Xep:MissingDefault:ERROR,\ --Xep:MutableMethodReturnType:ERROR,\ --Xep:NonCanonicalStaticMemberImport:ERROR,\ --Xep:PrimitiveArrayPassedToVarargsMethod:ERROR,\ --Xep:ProvidesFix: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/examples/gradle/errorprone/warnings b/examples/gradle/errorprone/warnings deleted file mode 100644 index da7302dd..00000000 --- a/examples/gradle/errorprone/warnings +++ /dev/null @@ -1,76 +0,0 @@ -errorProneWarnings = \ --Xep:AmbiguousMethodReference:ERROR,\ --Xep:ArgumentSelectionDefectChecker:ERROR,\ --Xep:AssertEqualsArgumentOrderChecker:ERROR,\ --Xep:AssertionFailureIgnored:ERROR,\ --Xep:BadAnnotationImplementation:ERROR,\ --Xep:BadComparable:ERROR,\ --Xep:BoxedPrimitiveConstructor:ERROR,\ --Xep:CannotMockFinalClass:ERROR,\ --Xep:CanonicalDuration:ERROR,\ --Xep:ClassCanBeStatic:ERROR,\ --Xep:ClassNewInstance:ERROR,\ --Xep:CollectionToArraySafeParameter:ERROR,\ --Xep:CollectorShouldNotUseState:ERROR,\ --Xep:ComparableAndComparator:ERROR,\ --Xep:DefaultCharset:ERROR,\ --Xep:DoubleCheckedLocking: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:IncrementInForLoopAndHeader:ERROR,\ --Xep:InjectOnConstructorOfAbstractClass:ERROR,\ --Xep:InputStreamSlowMultibyteRead:ERROR,\ --Xep:InstanceOfAndCastMatchWrongType:ERROR,\ --Xep:IntLongMath:ERROR,\ --Xep:IterableAndIterator:ERROR,\ --Xep:JUnit3FloatingPointComparisonWithoutDelta:ERROR,\ --Xep:JUnit4ClassUsedInJUnit3:ERROR,\ --Xep:JUnitAmbiguousTestClass:ERROR,\ --Xep:JavaLangClash:ERROR,\ --Xep:JdkObsolete:ERROR,\ --Xep:LogicalAssignment:ERROR,\ --Xep:MissingFail:ERROR,\ --Xep:MissingOverride:ERROR,\ --Xep:MultipleParallelOrSequentialCalls:ERROR,\ --Xep:MutableConstantField:ERROR,\ --Xep:NamedParameters:ERROR,\ --Xep:NarrowingCompoundAssignment:WARN,\ --Xep:NestedInstanceOfConditions:ERROR,\ --Xep:NonAtomicVolatileUpdate:ERROR,\ --Xep:NonOverridingEquals:ERROR,\ --Xep:NullableConstructor:ERROR,\ --Xep:NullablePrimitive:ERROR,\ --Xep:NullableVoid:ERROR,\ --Xep:OperatorPrecedence:ERROR,\ --Xep:OptionalNotPresent:ERROR,\ --Xep:OverrideThrowableToString:ERROR,\ --Xep:Overrides:ERROR,\ --Xep:OverridesGuiceInjectableMethod:ERROR,\ --Xep:ParameterName:ERROR,\ --Xep:PreconditionsInvalidPlaceholder:ERROR,\ --Xep:ProtoFieldPreconditionsCheckNotNull:ERROR,\ --Xep:ReferenceEquality:ERROR,\ --Xep:RequiredModifiers:ERROR,\ --Xep:ShortCircuitBoolean:ERROR,\ --Xep:SimpleDateFormatConstant:ERROR,\ --Xep:StaticGuardedByInstance:ERROR,\ --Xep:SynchronizeOnNonFinalField:ERROR,\ --Xep:ThreadJoinLoop:ERROR,\ --Xep:TruthConstantAsserts:ERROR,\ --Xep:TypeParameterShadowing:ERROR,\ --Xep:TypeParameterUnusedInFormals:ERROR,\ --Xep:URLEqualsHashCode:ERROR,\ --Xep:UnsynchronizedOverridesSynchronized:ERROR,\ --Xep:UseCorrectAssertInTests:ERROR,\ --Xep:WaitNotInLoop:ERROR,\ --Xep:WakelockReleasedDangerously:ERROR |