You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by GitBox <gi...@apache.org> on 2022/11/11 17:17:39 UTC

[GitHub] [lucene] risdenk commented on issue #11910: improve error-prone configuration for int-overflow bugs

risdenk commented on issue #11910:
URL: https://github.com/apache/lucene/issues/11910#issuecomment-1311964746

   > I wish i knew a way to make error-prone show all the failures (like javac would). Instead the plugin fails on the first error and I have to fix that one and run it again (slowly) to see the next. Its brutally painful.
   
   So I'm 95% sure this is possible. There are two parts to it.
   * Make errorprone only report as warnings
   * don't fail the gradle build on warnings
   
   I was able to get the first part to work by adding `-XepAllErrorsAsWarnings` in `gradle/validation/error-prone.gradle`. I gave up trying to get gradle build to stop failing on warnings. I'm sure there is a way to do it.
   
   PS FWIW I enabled a whole bunch of errorprone rules in Solr recently:
   * https://github.com/apache/solr/pull/1037
   * https://github.com/apache/solr/pull/1039
   * https://github.com/apache/solr/pull/1116
   * https://github.com/apache/solr/pull/1128


-- 
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-unsubscribe@lucene.apache.org

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


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