Adapting pylint runner to the new message format
Parseable output format and --include-ids parameter are deprecated and ignored in the pylint version used on the gate. These functions are replaced by the --msg-template parameter. This patch changes the runner to use the new parameter so that the job can run properly on the gate Closes-Bug: #1394606 Change-Id: Ia3e531923caa3f4e9a0dd03e0a4f5ef1a6d3dafb
This commit is contained in:
parent
4c69673c20
commit
16faba1ad8
@ -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…
x
Reference in New Issue
Block a user