Pylint check was broken after pylint update

* Module information was added (starts with *****)
* Errors not in method are reported now (\S+ changed to \S*)

Change-Id: Ic34b05ccc1c5415396f41722935d8d857c980ebb
Closes-Bug: #1393981
This commit is contained in:
Andrew Lazarev 2014-11-18 15:48:30 -08:00
parent 7505c71848
commit a583559dcc
1 changed files with 3 additions and 1 deletions

View File

@ -55,7 +55,7 @@ class LintOutput(object):
@classmethod
def from_line(cls, line):
m = re.search(r"(\S+):(\d+): \[(\S+)(, \S+)?] (.*)", line)
m = re.search(r"(\S+):(\d+): \[(\S+)(, \S*)?] (.*)", line)
matched = m.groups()
filename, lineno, code, message = (matched[0], int(matched[1]),
matched[2], matched[-1])
@ -74,6 +74,8 @@ class LintOutput(object):
"""
result = {}
for line in msg.splitlines():
if line.startswith('*****'):
continue
obj = cls.from_line(line)
if obj.is_ignored():
continue