error-prone icon indicating copy to clipboard operation
error-prone copied to clipboard

Feature Request: Being able to print a summary of triggered checks

Open jnehlmeier opened this issue 3 years ago • 1 comments

When applying ErrorProne to an existing project you might end up with lots of warnings, even more than javac would print to console (defaults to 100).

I think it would be nice to have an option that tells ErrorProne to output a summary table which shows all triggered checks order by occurrences, e.g.

ERRORS:
-------
 12x [AlwaysThrows]    - <link to Bugpattern page>

WARNINGS:
---------
200x [EqualsGetClass] - <link to Bugpattern page>
 12x [JdkObsolete]    - <link to Bugpattern page>

Then one can easily see an overview, can read more about the different bug patterns and you have a good starting point to improve the code base and/or configure ErrorProne. Obviously one would fix the errors first, but especially for warnings I would prefer incrementally work on a topic one by one. So to reduce the noise during compilation I would disable all warnings and then enable them one by one based on the initial overview output.

jnehlmeier avatar Jun 16 '22 09:06 jnehlmeier

Maybe it's not what you're looking for but I had a similar problem (lots of errors and warning reported on a massive codebase), so I ended up writing a plugin for SonarQube: https://github.com/erroraway/sonar-erroraway-plugin

gtoison avatar Aug 19 '22 09:08 gtoison

Hello, i want to work on this feature request for my first contribution if possible.

Doge17 avatar Oct 23 '22 21:10 Doge17