binkley / modern-java-practices

Modern Java/JVM Build Practices
Other
943 stars 69 forks source link

Try out error_prone and write about it in the wiki #492

Open jwlibby opened 4 months ago

jwlibby commented 4 months ago

This is part of the #462 epic on plugins for quality. Note: error_prone is a replacement for the stock JDK javac as a plugin to the JDK compiler

Try out error_prone and see what you think. When evaluating refer to the questions in https://github.com/binkley/modern-java-practices/issues/462 and upon completion add your pros and cons for this plugin as a comment to the aforementioned story. Plugin link: error-prone.

error_prone should fail many of the problems spotted by CodeQL and security/quality plugins, but fail them during compile. This is part of "security/quality in depth": if one tool doesn't catch concerns, another tool might.

This is a good topic for the "Going Further" section in Use static analysis. That page does not have more (yet) for folks to do in improving the compilation part of their build.

Note, this problem showed up: https://stackoverflow.com/questions/69439506/no-processor-claimed-any-of-these-annotations

Write about it in the wiki Look for a badge

jwlibby commented 1 month ago