diff options
| author | Claudiu Popa <pcmanticore@gmail.com> | 2014-10-21 00:06:26 +0300 |
|---|---|---|
| committer | Claudiu Popa <pcmanticore@gmail.com> | 2014-10-21 00:06:26 +0300 |
| commit | 7f598beffbec7a26afcad9fc1a7b575e64f696f1 (patch) | |
| tree | df19331e501a4def60b40c7cecc0537b5b50332f /lint.py | |
| parent | 56292f342cc33b4a063f506eb1564de860cd4e7d (diff) | |
| download | pylint-git-7f598beffbec7a26afcad9fc1a7b575e64f696f1.tar.gz | |
Don't report clean modules when showing the message percentage by module.
Diffstat (limited to 'lint.py')
| -rw-r--r-- | lint.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -949,6 +949,9 @@ def report_messages_by_module_stats(sect, stats, _): sorted_result.reverse() lines = ['module', 'error', 'warning', 'refactor', 'convention'] for line in sorted_result: + # Don't report clean modules. + if all(entry == 0 for entry in line[:-1]): + continue lines.append(line[-1]) for val in line[:-1]: lines.append('%.2f' % val) |
