Add Pylint builds to Sublime project

This commit is contained in:
nsubiron 2019-03-15 11:28:13 +01:00
parent 003661cc5b
commit 011c8be97c
1 changed files with 21 additions and 0 deletions

View File

@ -255,6 +255,27 @@
"shell_cmd": "CARLA_BUILD_NO_COLOR=true make clean"
}
},
{
"name": "CARLA - Pylint all",
"working_dir": "${project_path}/..",
"file_regex": "^([^\n:]*):(-?[0-9]+):?(-?[0-9]+)?:? (.*)$",
"syntax": "Packages/Makefile/Make Output.sublime-syntax",
"linux":
{
"shell_cmd": "shopt -s globstar; pylint -rn --msg-template='{path}:{line}:{column}: {msg_id}: {msg}' --disable=R,C --rcfile=PythonAPI/.pylintrc PythonAPI/**/*.py"
}
},
{
"name": "CARLA - Pylint this file",
"selector": "source.python",
"working_dir": "${project_path}/..",
"file_regex": "^([^\n:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"syntax": "Packages/Makefile/Make Output.sublime-syntax",
"linux":
{
"shell_cmd": "pylint -rn --msg-template='{path}:{line}:{column}: {msg_id}: {msg}' --disable=R,C --rcfile=PythonAPI/.pylintrc ${file}"
}
},
{
"name": "CARLA - Prettify this file",
"working_dir": "${project_path}/..",