Closed xenoterracide closed 3 years ago
If I understand correctly, that would mean:
errorprone
configuration (ideally for the annotationProcessorPath
of the JavaCompile
task)BuiltInCheckerSuppliers
class from Error Prone (not sure if this is part of the public API though)This could be built into a companion Gradle plugin if you really want it. That's not something I'm inclined to include (and then support and maintain) at first sight.
You might be interested in https://github.com/google/error-prone/issues/424 though, which would make things much easier from a user's point of view, and independent on how you use ErrorProne: upgrade all warnings to errors (possibly preceded with upgrading all disabled checks as warnings), then selectively downgrade some of them to warnings (or disable them); basically the reverse of what the docs do with -XepDisableAllChecks
to disable everything then selectively enabling some checks.
I'm not certain, but I think this can be done without classloading, IIRC spring has some sort of annotation scanner that doesn't need to load the class... but yeah, have no idea. I'm probably not going to build it, that's why this was a totally "wishlist" thing.
adding error bugs and counting
I wish to write instead
this of course makes the huge assumption that how you're consuming Error Prone, would allow you to get the Patterns directly from it.