-
Notifications
You must be signed in to change notification settings - Fork 676
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update com.google.errorprone:* to 2.31.0 #2862
Changes from 7 commits
4658c96
93f2f73
8844112
87399ec
3442dce
e0fc240
463e1d4
f2b67d6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -179,6 +179,7 @@ allprojects { prj -> | |
'-Xep:MathRoundIntLong:ERROR', | ||
// '-Xep:MislabeledAndroidString:OFF', // we don't use android | ||
'-Xep:MisplacedScopeAnnotations:ERROR', | ||
// '-Xep:MissingRuntimeRetention:ERROR', // todo check if useful or comment why not | ||
// '-Xep:MissingSuperCall:OFF', // we don't use this annotation | ||
// '-Xep:MissingTestCall:OFF', // we don't use this annotation | ||
'-Xep:MisusedDayOfYear:ERROR', | ||
|
@@ -218,12 +219,15 @@ allprojects { prj -> | |
'-Xep:RandomCast:ERROR', | ||
'-Xep:RandomModInteger:ERROR', | ||
// '-Xep:RectIntersectReturnValueIgnored:OFF', // we don't use android | ||
// '-Xep:RedundantSetterCall:ERROR', // todo check if useful or comment why not | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We don't use AutoValue |
||
// '-Xep:RequiredModifiers:OFF', // we don't use this annotation | ||
// '-Xep:RestrictedApiChecker:OFF', // we don't use this annotation | ||
// '-Xep:ReturnValueIgnored:OFF', // todo there are problems that should be fixed | ||
// '-Xep:SelfAssertion:ERROR', // todo check if useful or comment why not | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We don't use truth so can be ignored |
||
'-Xep:SelfAssignment:ERROR', | ||
'-Xep:SelfComparison:ERROR', | ||
'-Xep:SelfEquals:ERROR', | ||
// '-Xep:SetUnrecognized:ERROR', // todo check if useful or comment why not | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We don't use proto so can be ignored |
||
// '-Xep:ShouldHaveEvenArgs:OFF', // we don't use truth | ||
'-Xep:SizeGreaterThanOrEqualsZero:ERROR', | ||
'-Xep:StreamToString:ERROR', | ||
|
@@ -236,7 +240,7 @@ allprojects { prj -> | |
// '-Xep:ThrowIfUncheckedKnownChecked:OFF', // we don't use this annotation | ||
'-Xep:ThrowNull:ERROR', | ||
'-Xep:TreeToString:ERROR', | ||
// '-Xep:TruthSelfEquals:OFF', // we don't use truth | ||
// '-Xep:SelfAssertion:OFF', // we don't use truth | ||
malliaridis marked this conversation as resolved.
Show resolved
Hide resolved
|
||
'-Xep:TryFailThrowable:ERROR', | ||
'-Xep:TypeParameterQualifier:ERROR', | ||
'-Xep:UnicodeDirectionalityCharacters:ERROR', | ||
|
@@ -265,6 +269,7 @@ allprojects { prj -> | |
'-Xep:AssertionFailureIgnored:WARN', | ||
'-Xep:AssistedInjectAndInjectOnSameConstructor:WARN', | ||
'-Xep:AttemptedNegativeZero:WARN', | ||
// '-Xep:AutoValueBoxedValues:WARN', // todo check if useful or comment why not | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is probably useful |
||
// '-Xep:AutoValueFinalMethods:OFF', // we don't use autovalue | ||
// '-Xep:AutoValueImmutableFields:OFF', // we don't use autovalue | ||
// '-Xep:AutoValueSubclassLeaked:OFF', // we don't use autovalue | ||
|
@@ -285,6 +290,7 @@ allprojects { prj -> | |
'-Xep:ChainedAssertionLosesContext:WARN', | ||
'-Xep:CharacterGetNumericValue:WARN', | ||
'-Xep:ClassCanBeStatic:WARN', | ||
// '-Xep:ClassInitializationDeadlock:WARN', // todo check if useful or comment why not | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is probably useful |
||
'-Xep:ClassNewInstance:WARN', | ||
// '-Xep:CloseableProvides:OFF', // we don't use this annotation | ||
'-Xep:ClosingStandardOutputStreams:WARN', | ||
|
@@ -296,6 +302,8 @@ allprojects { prj -> | |
'-Xep:DateChecker:WARN', | ||
'-Xep:DateFormatConstant:WARN', | ||
// '-Xep:DefaultCharset:OFF', // we have forbiddenapis for that | ||
//'-Xep:DeeplyNested:WARN', // todo check if useful or comment why not | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This might be useful |
||
//'-Xep:DefaultLocale:WARN', // todo check if useful or comment why not | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is not needed. its handled by forbidden apis |
||
'-Xep:DefaultPackage:WARN', | ||
'-Xep:DeprecatedVariable:WARN', | ||
'-Xep:DirectInvocationOnMock:WARN', | ||
|
@@ -309,6 +317,7 @@ allprojects { prj -> | |
'-Xep:EmptyBlockTag:WARN', | ||
// '-Xep:EmptyCatch:OFF', // todo check if useful or comment why not - might be handled by ECJ? | ||
// '-Xep:EmptySetMultibindingContributions:OFF', // we don't use this annotation | ||
// '-Xep:EnumOrdinal:WARN', // todo check if useful or comment why not | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This might be useful |
||
'-Xep:EqualsGetClass:WARN', | ||
'-Xep:EqualsIncompatibleType:WARN', | ||
'-Xep:EqualsUnsafeCast:WARN', | ||
|
@@ -330,6 +339,7 @@ allprojects { prj -> | |
// '-Xep:FragmentNotInstantiable:OFF', // we don't use android | ||
// '-Xep:FutureReturnValueIgnored:OFF', // todo there are problems that should be fixed | ||
'-Xep:GetClassOnEnum:WARN', | ||
// '-Xep:GuiceNestedCombine:WARN', // todo check if useful or comment why not | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We don't use guice |
||
'-Xep:HidingField:WARN', | ||
'-Xep:ICCProfileGetInstance:WARN', | ||
'-Xep:IdentityHashMapUsage:WARN', | ||
|
@@ -383,6 +393,7 @@ allprojects { prj -> | |
'-Xep:JodaPlusMinusLong:WARN', | ||
'-Xep:JodaTimeConverterManager:WARN', | ||
'-Xep:JodaWithDurationAddedLong:WARN', | ||
// '-Xep:JUnitIncompatibleType:WARN', // todo check if useful or comment why not | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is probably useful |
||
// '-Xep:LabelledBreakTarget:OFF', // stylistic | ||
'-Xep:LiteEnumValueOf:WARN', | ||
'-Xep:LiteProtoToString:WARN', | ||
|
@@ -403,10 +414,12 @@ allprojects { prj -> | |
// '-Xep:MissingSummary:OFF', // style preference that we don't want to enforce | ||
// '-Xep:MixedMutabilityReturnType:OFF', // todo check if useful or comment why not | ||
'-Xep:MockNotUsedInProduction:WARN', | ||
// '-Xep:MockitoDoSetup:WARN', // todo check if useful or comment why not | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This might be useful |
||
'-Xep:ModifiedButNotUsed:WARN', | ||
'-Xep:ModifyCollectionInEnhancedForLoop:WARN', | ||
'-Xep:ModifySourceCollectionInStream:WARN', | ||
'-Xep:MultimapKeys:WARN', | ||
// '-Xep:MultipleNullnessAnnotations:WARN', // todo check if useful or comment why not | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We don't use nullness annotations but might be useful |
||
'-Xep:MultipleParallelOrSequentialCalls:WARN', | ||
'-Xep:MultipleUnaryOperatorsInMethodCall:WARN', | ||
// '-Xep:MutableGuiceModule:OFF', // we don't use guice | ||
|
@@ -428,7 +441,9 @@ allprojects { prj -> | |
'-Xep:NullableOptional:WARN', | ||
// '-Xep:NullablePrimitive:OFF', // we don't use this annotation | ||
// '-Xep:NullablePrimitiveArray:OFF', // we don't use this annotation | ||
// '-Xep:NullableTypeParameter:WARN', // todo check if useful or comment why not | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Might be useful |
||
// '-Xep:NullableVoid:OFF', // we don't use this annotation | ||
// '-Xep:NullableWildcard:WARN', // todo check if useful or comment why not | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Might be useful |
||
'-Xep:ObjectEqualsForPrimitives:WARN', | ||
// '-Xep:ObjectToString:OFF', // todo check if useful or comment why not | ||
'-Xep:ObjectsHashCodePrimitive:WARN', | ||
|
@@ -442,6 +457,7 @@ allprojects { prj -> | |
'-Xep:Overrides:WARN', | ||
// '-Xep:OverridesGuiceInjectableMethod:OFF', // we don't use guice | ||
'-Xep:ParameterName:WARN', | ||
// '-Xep:PatternMatchingInstanceof:WARN', // todo check if useful or comment why not | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure we need this since its subjective |
||
'-Xep:PreconditionsCheckNotNullRepeated:WARN', | ||
'-Xep:PrimitiveAtomicReference:WARN', | ||
'-Xep:ProtectedMembersInFinalClass:WARN', | ||
|
@@ -459,6 +475,7 @@ allprojects { prj -> | |
// '-Xep:SameNameButDifferent:OFF', // todo check if useful or comment why not | ||
'-Xep:SelfAlwaysReturnsThis:WARN', | ||
// '-Xep:ShortCircuitBoolean:OFF', // todo check if useful or comment why not | ||
// '-Xep:StatementSwitchToExpressionSwitch:WARN', // todo check if useful or comment why not | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure this is needed since its subjective |
||
// '-Xep:StaticAssignmentInConstructor:OFF', // we assign SolrTestCaseJ4.configString in many tests, difficult to untangle | ||
'-Xep:StaticAssignmentOfThrowable:WARN', | ||
// '-Xep:StaticGuardedByInstance:OFF', // todo check if useful or comment why not | ||
|
@@ -469,9 +486,12 @@ allprojects { prj -> | |
'-Xep:StringCharset:WARN', | ||
'-Xep:StringFormatWithLiteral:WARN', | ||
// '-Xep:StringSplitter:OFF', // todo check if useful or comment why not - might be able to use forbidden-apis for this? | ||
// '-Xep:SunApi:WARN', // todo check if useful or comment why not | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is probably useful |
||
// '-Xep:SuperCallToObjectMethod:WARN', // todo check if useful or comment why not | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is probably useful |
||
'-Xep:SuperEqualsIsObjectEquals:WARN', | ||
// '-Xep:SwigMemoryLeak:OFF', // we don't use swig | ||
// '-Xep:SynchronizeOnNonFinalField:OFF', // todo check if useful or comment why not | ||
// '-Xep:SystemConsoleNull:WARN', // todo check if useful or comment why not | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is probably useful |
||
// '-Xep:ThreadJoinLoop:OFF', // todo check if useful or comment why not | ||
// '-Xep:ThreadLocalUsage:OFF', // todo check if useful or comment why not | ||
// '-Xep:ThreadPriorityCheck:OFF', // todo check if useful or comment why not | ||
|
@@ -493,6 +513,7 @@ allprojects { prj -> | |
// '-Xep:UnicodeEscape:OFF', // can't enable since Lucene/Solr tests use unicode a bunch | ||
// '-Xep:UnnecessaryAssignment:OFF', // we don't use these annotations | ||
'-Xep:UnnecessaryAsync:WARN', | ||
// '-Xep:UnnecessaryBreakInSwitch:WARN', // todo check if useful or comment why not | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure this is useful or just subjective |
||
'-Xep:UnnecessaryLambda:WARN', | ||
'-Xep:UnnecessaryLongToIntConversion:WARN', | ||
'-Xep:UnnecessaryMethodInvocationMatcher:WARN', | ||
|
@@ -513,6 +534,7 @@ allprojects { prj -> | |
// '-Xep:UseBinds:OFF', // we don't use this annotation | ||
// '-Xep:UseCorrectAssertInTests:OFF', // we inherit from LuceneTestCase which extends Assert | ||
'-Xep:VariableNameSameAsType:WARN', | ||
// '-Xep:VoidUsed:WARN', // todo check if useful or comment why not | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Might be useful |
||
// '-Xep:WaitNotInLoop:OFF', // todo check if useful or comment why not | ||
// '-Xep:WakelockReleasedDangerously:OFF', // we don't use android | ||
// '-Xep:WithSignatureDiscouraged:OFF', // we aren't using this error-prone internal api | ||
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
c3ba307b915d6d506e98ffbb49e6d2d12edad65b |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't use guice so this can be ignored.