Skip to content
Snippets Groups Projects
Commit 5b9bd49b authored by Savici, Andrei T.'s avatar Savici, Andrei T.
Browse files

Merge pull request #16547 from mantidproject/fix-pylint-ci

Revert pylint output format change
parents 810c29eb 4d5d907b
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ if ( PYLINT_FOUND )
# Use msvs for MSVC generator, colorized for everything else. The buildservers can
# set it to parseable for Jenkins
if ( MSVC )
set ( DEFAULT_FORMAT "{path}({line}): [{msg_id}{obj}] {msg}" )
set ( DEFAULT_FORMAT "msvs" )
else ()
set ( DEFAULT_FORMAT "{C}:{line:3d},{column:2d}: {msg} ({symbol})" )
endif ()
......
......@@ -79,7 +79,7 @@ fi
# Need this because some strange control sequences when using default TERM=xterm
export TERM="linux"
PYLINT_OUTPUT_DIR=$BUILD_DIR/pylint
PYLINT_FORMAT="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}"
PYLINT_FORMAT="parseable"
$SCL_ON_RHEL6 "cmake ${CMAKE_GENERATOR} -DCMAKE_BUILD_TYPE=${BUILD_CONFIG} -DENABLE_CPACK=OFF -DMAKE_VATES=OFF -DPYLINT_MSG_TEMPLATE=\"${PYLINT_FORMAT}\" -DPYLINT_NTHREADS=$BUILD_THREADS -DPYLINT_OUTPUT_DIR=${PYLINT_OUTPUT_DIR} .."
###############################################################################
......
......@@ -14,7 +14,7 @@ import sys
import time
# Default output format
DEFAULT_PYLINT_FORMAT = '{msg_id}:{line:3d},{column}: {obj}: {msg}'
DEFAULT_PYLINT_FORMAT = 'parseable'
# Exe to call
DEFAULT_PYLINT_EXE = 'pylint'
# Default log level
......@@ -470,7 +470,7 @@ def build_pylint_cmd(srcpath, options):
A list of args to pass to subprocess.Popen
"""
cmd = [options.exe]
cmd.extend(["--msg-template=" + options.format])
cmd.extend(["--output-format=" + options.format])
if options.rcfile is not None:
cmd.extend(["--rcfile=" + options.rcfile])
# and finally, source module
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment