Merge "Adapting pylint runner to the new message format"
This commit is contained in:
commit
30824df1a4
@ -124,9 +124,10 @@ class ErrorKeys(object):
|
|||||||
|
|
||||||
def run_pylint():
|
def run_pylint():
|
||||||
buff = StringIO()
|
buff = StringIO()
|
||||||
reporter = text.ParseableTextReporter(output=buff)
|
args = ["--msg-template={path}:{line}: [{msg_id}({symbol}), {obj}] {msg}",
|
||||||
args = ["--include-ids=y", "-E", "ceilometer"]
|
"-E",
|
||||||
lint.Run(args, reporter=reporter, exit=False)
|
"ceilometer"]
|
||||||
|
lint.Run(args, exit=False)
|
||||||
val = buff.getvalue()
|
val = buff.getvalue()
|
||||||
buff.close()
|
buff.close()
|
||||||
return val
|
return val
|
||||||
|
Loading…
Reference in New Issue
Block a user