madrob commented on code in PR #11971:
URL: https://github.com/apache/lucene/pull/11971#discussion_r1030844053


##########
gradle/validation/error-prone.gradle:
##########
@@ -123,36 +123,36 @@ allprojects { prj ->
             '-Xep:EqualsNull:ERROR',
             '-Xep:EqualsReference:ERROR',
             '-Xep:EqualsWrongThing:ERROR',
-            '-Xep:FloggerFormatString:ERROR',
-            '-Xep:FloggerLogVarargs:ERROR',
-            '-Xep:FloggerSplitLogStatement:ERROR',
-            '-Xep:ForOverride:ERROR',
+            // '-Xep:FloggerFormatString:OFF', // we don't use flogger
+            // '-Xep:FloggerLogVarargs:OFF', // we don't use flogger
+            // '-Xep:FloggerSplitLogStatement:OFF', // we don't use flogger
+            // '-Xep:ForOverride:OFF', // we don't use this annotation
             // '-Xep:FormatString:OFF',
-            '-Xep:FormatStringAnnotation:ERROR',
+            // '-Xep:FormatStringAnnotation:OFF', // we don't use this 
annotation
             '-Xep:FromTemporalAccessor:ERROR',
             '-Xep:FunctionalInterfaceMethodChanged:ERROR',
             '-Xep:FuturesGetCheckedIllegalExceptionType:ERROR',
             '-Xep:FuzzyEqualsShouldNotBeUsedInEqualsMethod:ERROR',
             '-Xep:GetClassOnAnnotation:ERROR',
             '-Xep:GetClassOnClass:ERROR',
-            '-Xep:GuardedBy:ERROR',
-            '-Xep:GuiceAssistedInjectScoping:ERROR',
-            '-Xep:GuiceAssistedParameters:ERROR',
-            '-Xep:GuiceInjectOnFinalField:ERROR',
+            // '-Xep:GuardedBy:OFF', // we don't use this annotation
+            // '-Xep:GuiceAssistedInjectScoping:OFF', // we don't use guice
+            // '-Xep:GuiceAssistedParameters:OFF', // we don't use guice
+            // '-Xep:GuiceInjectOnFinalField:OFF', // we don't use guice
             '-Xep:HashtableContains:ERROR',
             // '-Xep:IdentityBinaryExpression:OFF',
             '-Xep:IdentityHashMapBoxing:ERROR',
-            '-Xep:IgnoredPureGetter:ERROR',
-            '-Xep:Immutable:ERROR',
+            // '-Xep:IgnoredPureGetter:OFF', // we don't use these annotations
+            // '-Xep:Immutable:OFF', // we don't use this annotation
             '-Xep:Incomparable:ERROR',
-            '-Xep:IncompatibleArgumentType:ERROR',
-            '-Xep:IncompatibleModifiers:ERROR',
+            // '-Xep:IncompatibleArgumentType:OFF', // we don't use this 
annotation
+            // '-Xep:IncompatibleModifiers:OFF', // we don't use this 
annotation
             '-Xep:IndexOfChar:ERROR',

Review Comment:
   I don't understand this check from reading the bug pattern description 
https://errorprone.info/bugpattern/IndexOfChar but maybe forbiddenAPIs can 
handle it?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to