diff options
author | Balazs Gibizer <balazs.gibizer@ericsson.com> | 2014-11-20 16:13:34 +0100 |
---|---|---|
committer | Balazs Gibizer <balazs.gibizer@ericsson.com> | 2014-11-21 09:54:01 +0100 |
commit | 16faba1ad8889cecf86d12cfe5ba17e8216d7084 (patch) | |
tree | 1df2d8ddb4aab49b24bfef2ef8661d95b69ef834 /tools | |
parent | 4c69673c20bb95d39deb7a32dcf4dcf6e5575af9 (diff) | |
download | ceilometer-16faba1ad8889cecf86d12cfe5ba17e8216d7084.tar.gz |
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
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/lintstack.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/lintstack.py b/tools/lintstack.py index bf1ae1ba..9e833847 100755 --- a/tools/lintstack.py +++ b/tools/lintstack.py @@ -124,9 +124,10 @@ class ErrorKeys(object): def run_pylint(): buff = StringIO() - reporter = text.ParseableTextReporter(output=buff) - args = ["--include-ids=y", "-E", "ceilometer"] - lint.Run(args, reporter=reporter, exit=False) + args = ["--msg-template={path}:{line}: [{msg_id}({symbol}), {obj}] {msg}", + "-E", + "ceilometer"] + lint.Run(args, exit=False) val = buff.getvalue() buff.close() return val |