summaryrefslogtreecommitdiff
path: root/lint.py
diff options
context:
space:
mode:
Diffstat (limited to 'lint.py')
-rw-r--r--lint.py3
1 files changed, 3 insertions, 0 deletions
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)