diff options
author | Balazs Gibizer <balazs.gibizer@ericsson.com> | 2014-11-20 15:23:00 +0100 |
---|---|---|
committer | Balazs Gibizer <balazs.gibizer@ericsson.com> | 2014-11-21 09:46:27 +0100 |
commit | 92d38e76953959548e18776b049cc88a23337637 (patch) | |
tree | 601932afe5f341fbbc1cf35868f39b2fb6128d9f /tools | |
parent | 044e2fa71bb6b54cc8e8bf67e7797df28ca34702 (diff) | |
download | nova-92d38e76953959548e18776b049cc88a23337637.tar.gz |
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
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/lintstack.py | 5 |
1 files 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 |