google / google/error-prone

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

Open
#3,271 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Java
Stars
7.2k
Forks
820
Avg merge
5h 9m
Merged PRs (30d)
50

Description

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] -

WARNINGS:
---------
200x [EqualsGetClass] -
12x [JdkObsolete] -
```

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.