summaryrefslogtreecommitdiff
path: root/lint.py
diff options
context:
space:
mode:
authorDaniel Balparda <balparda@google.com>2013-11-21 09:50:24 -0800
committerDaniel Balparda <balparda@google.com>2013-11-21 09:50:24 -0800
commitd3b3b6c9976960de979b0a92622db3d5729c129a (patch)
tree22d4a3238b9a75b950b4bf2b042e33bc017ac279 /lint.py
parent130b87b9b7a561f5c8a81a96ad9ff7393e9a4335 (diff)
downloadpylint-git-d3b3b6c9976960de979b0a92622db3d5729c129a.tar.gz
Always call the reporter's on_close method, even if no file could be analyzed. Some reporters still need to flush their state.
Diffstat (limited to 'lint.py')
-rw-r--r--lint.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lint.py b/lint.py
index d184355ad..30f83de49 100644
--- a/lint.py
+++ b/lint.py
@@ -717,6 +717,8 @@ This is used by the global evaluation report (RP0004).'}),
# save results if persistent run
if self.config.persistent:
config.save_results(self.stats, self.base_name)
+ else:
+ self.reporter.on_close(self.stats, {})
# specific reports ########################################################