From 92d38e76953959548e18776b049cc88a23337637 Mon Sep 17 00:00:00 2001 From: Balazs Gibizer Date: Thu, 20 Nov 2014 15:23:00 +0100 Subject: [PATCH] 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 --- tools/lintstack.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/lintstack.py b/tools/lintstack.py index b2ff601350..82d7b0dcce 100755 --- a/tools/lintstack.py +++ b/tools/lintstack.py @@ -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