From a88e5cdcb0f14fa48957fbc02f232d1d79c6444a Mon Sep 17 00:00:00 2001 From: Daniel Balparda Date: Thu, 21 Nov 2013 09:50:24 -0800 Subject: Always call the reporter's on_close method, even if no file could be analyzed. Some reporters still need to flush their state. --- lint.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lint.py b/lint.py index d184355..30f83de 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 ######################################################## -- cgit v1.2.1