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:
parent
7505c71848
commit
a583559dcc
|
@ -55,7 +55,7 @@ class LintOutput(object):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_line(cls, line):
|
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()
|
matched = m.groups()
|
||||||
filename, lineno, code, message = (matched[0], int(matched[1]),
|
filename, lineno, code, message = (matched[0], int(matched[1]),
|
||||||
matched[2], matched[-1])
|
matched[2], matched[-1])
|
||||||
|
@ -74,6 +74,8 @@ class LintOutput(object):
|
||||||
"""
|
"""
|
||||||
result = {}
|
result = {}
|
||||||
for line in msg.splitlines():
|
for line in msg.splitlines():
|
||||||
|
if line.startswith('*****'):
|
||||||
|
continue
|
||||||
obj = cls.from_line(line)
|
obj = cls.from_line(line)
|
||||||
if obj.is_ignored():
|
if obj.is_ignored():
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue