From 7f598beffbec7a26afcad9fc1a7b575e64f696f1 Mon Sep 17 00:00:00 2001 From: Claudiu Popa Date: Tue, 21 Oct 2014 00:06:26 +0300 Subject: Don't report clean modules when showing the message percentage by module. --- lint.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lint.py') diff --git a/lint.py b/lint.py index 43a310a55..2a19bf952 100644 --- a/lint.py +++ b/lint.py @@ -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) -- cgit v1.2.1