Merge "Adapting pylint runner to the new message format"

This commit is contained in:
Jenkins 2014-11-25 04:58:03 +00:00 committed by Gerrit Code Review
commit 30824df1a4
1 changed files with 4 additions and 3 deletions

View File

@ -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