diff options
author | Dan Goldsmith <djgoldsmith@googlemail.com> | 2014-04-11 16:17:07 +0100 |
---|---|---|
committer | Dan Goldsmith <djgoldsmith@googlemail.com> | 2014-04-11 16:17:07 +0100 |
commit | 3804162e9a3f0e320867ffb45e09a43f9d0156c2 (patch) | |
tree | 3e5d76e2e358de37472119f968b3e6abed26704e | |
parent | 28bdc61d6d7900a6c13fc90309b6f0ae004061d9 (diff) | |
download | pylint-3804162e9a3f0e320867ffb45e09a43f9d0156c2.tar.gz |
Removed cruft / Commented code from HTML reportes
-rw-r--r-- | reporters/html.py | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/reporters/html.py b/reporters/html.py index 5f95903..1c39bc6 100644 --- a/reporters/html.py +++ b/reporters/html.py @@ -23,14 +23,6 @@ from logilab.common.ureports import HTMLWriter, Section, Table from pylint.interfaces import IReporter from pylint.reporters import BaseReporter, Message -#self.linter.config.msg_template or self.line_format -#line_format = '{C}:{line:3d},{column:2d}: {msg} ({symbol})' -#Default -# self.msgs += (msg.category, msg.module, msg.obj, -# str(msg.line), str(msg.column), escape(msg.msg)) -#Header -# msgs = ['type', 'module', 'object', 'line', 'col_offset', 'message'] - class HTMLReporter(BaseReporter): """report messages and layouts in HTML""" @@ -65,8 +57,6 @@ class HTMLReporter(BaseReporter): def add_message(self, msg_id, location, msg): """manage message of different type and in the context of path""" msg = Message(self, msg_id, location, msg) - #self.msgs += (msg.category, msg.module, msg.obj, - # str(msg.line), str(msg.column), escape(msg.msg)) #It would be better to do this in init, but currently we do not #have access to the linter (as it is setup in lint.set_reporter() @@ -77,15 +67,6 @@ class HTMLReporter(BaseReporter): #We want to add the lines given by the template thismsg = [str(msg.__dict__.get(x, None)) for x in self.msgargs] - #We could escape the msg column however it doesnt seem - #to make a difference - # thismsg = [] - # for item in self.msgargs: - # if item == "msg": - # thismsg.append(str(msg.__dict__.get(item, None))) - # else: - # thismsg.append(str(msg.__dict__.get(item, None))) - self.msgs += thismsg def set_output(self, output=None): |