[GitHub] [lucene-solr] dweiss commented on pull request #1816: LUCENE-9497: Integerate Error Prone ( Static Analysis Tool ) during compilation

2020-09-04 Thread GitBox


dweiss commented on pull request #1816:
URL: https://github.com/apache/lucene-solr/pull/1816#issuecomment-686969828


   I made a few changes to consolidate the version used across compilations. 
Still don't know what the original problem was, let's see if this passes though.
   https://github.com/apache/lucene-solr/pull/1828



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.

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



[GitHub] [lucene-solr] dweiss commented on pull request #1816: LUCENE-9497: Integerate Error Prone ( Static Analysis Tool ) during compilation

2020-09-03 Thread GitBox


dweiss commented on pull request #1816:
URL: https://github.com/apache/lucene-solr/pull/1816#issuecomment-686928388


   I'll take a look later as to why this doesn't build. The problem with 
individual suppressions remains though - you can go by category but I think 
there will be still places where false positives need to be marked as such (so 
that they don't generate a warning). We will need a mechanism to individually 
flag such places as "valid use" - this applies to reference comparisons in 
particular (which may be a bug or may be intentional, depending on the 
intention of the programmer).



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.

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



[GitHub] [lucene-solr] dweiss commented on pull request #1816: LUCENE-9497: Integerate Error Prone ( Static Analysis Tool ) during compilation

2020-09-03 Thread GitBox


dweiss commented on pull request #1816:
URL: https://github.com/apache/lucene-solr/pull/1816#issuecomment-686292245


   bq. While some warnings are disputable, most of these point to genuine 
errors or deficiencies - this looks very useful!
   
   Right. This is always my problem with static analysis tools - if you can't 
somehow mark or suppress warnings in places where the code is valid (comparing 
references, for example) then the tool becomes a burden to maintain - the list 
of warnings will just pile up without anyone looking. 
   
   bq. To get this plugin integrated ( without fixing all the warnings/errors ) 
we'd need to set this options.errorprone.allErrorsAsWarnings = true and remove 
"-Werror", from the defaults-java.gradle file
   
   I'm against removing -Werror from compiler options. We can make this plugin 
run as an option but -Werror should be the default for anyone else.
   



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.

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



[GitHub] [lucene-solr] dweiss commented on pull request #1816: LUCENE-9497: Integerate Error Prone ( Static Analysis Tool ) during compilation

2020-09-02 Thread GitBox


dweiss commented on pull request #1816:
URL: https://github.com/apache/lucene-solr/pull/1816#issuecomment-685957523


   I don't think so. That issue only added dependencies, it has nothing to do 
with running static analysis using that tool.



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.

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



[GitHub] [lucene-solr] dweiss commented on pull request #1816: LUCENE-9497: Integerate Error Prone ( Static Analysis Tool ) during compilation

2020-09-02 Thread GitBox


dweiss commented on pull request #1816:
URL: https://github.com/apache/lucene-solr/pull/1816#issuecomment-685376959


   Please move all of this plugin's related code to a separate snippet file, 
much like everything else gradle-related is shaped at the moment.



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.

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