Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate parsable reportfile #444

Open
tomasbjerre opened this issue Jul 30, 2016 · 6 comments
Open

Generate parsable reportfile #444

tomasbjerre opened this issue Jul 30, 2016 · 6 comments

Comments

@tomasbjerre
Copy link

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).

@tomasbjerre
Copy link
Author

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!

@leinardi
Copy link

+1 for this request, this will help with CI since parsing the entire build output for ErrorProne errors isn't that easy and reliable.

@tomasbjerre
Copy link
Author

@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!

@Vyom-Yadav
Copy link

Vyom-Yadav commented Aug 24, 2022

+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.

@tbroyer
Copy link
Contributor

tbroyer commented Dec 5, 2022

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.

@faisal6621
Copy link

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!

Hi @tomasbjerre
I was looking at the https://github.com/tomasbjerre/violations-lib/ and https://github.com/tomasbjerre/violations-maven-plugin. However, in your example for the maven plugin you have not explained well what the <pattern> should be for various parsers?

Can you explain that or mention what pattern should be used for GoogleErrorProne?

Regards,
Faisal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants