Adapting pylint runner to the new message format

Pareseable 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: I1de424bae4c2b634cd0bc804cb7e81624c96a195
This commit is contained in:
Balazs Gibizer 2014-11-20 15:23:00 +01:00
parent 044e2fa71b
commit 92d38e7695
1 changed files with 2 additions and 3 deletions

View File

@ -130,9 +130,8 @@ class ErrorKeys(object):
def run_pylint():
buff = StringIO.StringIO()
reporter = text.ParseableTextReporter(output=buff)
args = ["--include-ids=y", "-E", "nova"]
lint.Run(args, reporter=reporter, exit=False)
args = ["--msg-template={path}:{line}: [{msg_id}({symbol}), {obj}] {msg}", "-E", "nova"]
lint.Run(args, exit=False)
val = buff.getvalue()
buff.close()
return val