error-prone
error-prone copied to clipboard
Generate parsable reportfile
I'd like to be able to generate reportfiles with result of the analysis. In my case I need a parsable report (there are some examples to perhaps resemble here).
I'm currently supporting it by parsing the output from the build log: https://github.com/tomasbjerre/violations-lib/blob/master/src/main/java/se/bjurr/violations/lib/parsers/GoogleErrorProneParser.java
But still a format made for parsing would be better!
+1 for this request, this will help with CI since parsing the entire build output for ErrorProne errors isn't that easy and reliable.
@cushon @nglorioso @graememorgan @eaftan @cpovirk
Some attention here would be nice. There was a working PR #1132 that now has conflicts due to slow feedback...
This feature would really help introduce this great tool in legacy projects!
+1 It would be nice if this is implemented, currently at Checkstyle, we are using a custom groovy script to parse the output and get the errors. Built-in support will be beneficial.
ErrorProne uses standard javac diagnostics, so IMO this is something that should be supported at the build tool level. This would then automatically include Xlint warnings and other compilation errors as well.