summaryrefslogtreecommitdiff
path: root/lint.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2014-10-21 00:06:26 +0300
committerClaudiu Popa <pcmanticore@gmail.com>2014-10-21 00:06:26 +0300
commit7f598beffbec7a26afcad9fc1a7b575e64f696f1 (patch)
treedf19331e501a4def60b40c7cecc0537b5b50332f /lint.py
parent56292f342cc33b4a063f506eb1564de860cd4e7d (diff)
downloadpylint-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.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)