Hi,
Attached is the bug fix for pylint bug #2159. The bug was when you ran
pylint with the reports turned off and with the html reporter (-r n -f html)
it would not display any output, when it should display the messages.
There are no tests for this since we are unsure about how to test for such a
bug, since we are not testing for specific messages.
Thanks,
- Nik
diff -r 16f098a0c3ae lint.py
--- a/lint.py Tue Mar 30 14:54:42 2010 +0200
+++ b/lint.py Thu Apr 01 00:36:17 2010 -0400
@@ -41,7 +41,7 @@
from logilab.common.interface import implements
from logilab.common.textutils import splitstrip
from logilab.common.fileutils import norm_open
-from logilab.common.ureports import Table, Text
+from logilab.common.ureports import Table, Text, Section
from logilab.common.__pkginfo__ import version as common_version
from logilab.astng import MANAGER, nodes
@@ -613,6 +613,8 @@
old_stats = config.load_results(self.base_name)
if self.config.reports:
self.make_reports(self.stats, old_stats)
+ elif self.config.output_format == 'html':
+ self.reporter.display_results(Section())
# save results if persistent run
if self.config.persistent:
config.save_results(self.stats, self.base_name)
_______________________________________________
Python-Projects mailing list
[email protected]
http://lists.logilab.org/mailman/listinfo/python-projects