Adding additional Python and Objective-C linting (#524)

* adding mypy and pylint to the linter plugin

* adding objective-c linting

* updating runtime file
This commit is contained in:
Samantha Marshall
2017-01-17 16:34:11 -05:00
committed by Zachary Yedidia
parent 41fb57e449
commit ea57d8b883
2 changed files with 29 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@@ -25,8 +25,12 @@ function runLinter()
lint("luacheck", "luacheck", {"--no-color", file}, "%f:%l:%d+: %m")
elseif ft == "python" then
lint("pyflakes", "pyflakes", {file}, "%f:%l:.-:? %m")
lint("mypy", "mypy", {file}, "%f:%l: %m")
lint("pylint", "pylint", {"--output-format=parseable", "--reports=no", file}, "%f:%l: %m")
elseif ft == "c" then
lint("gcc", "gcc", {"-fsyntax-only", "-Wall", "-Wextra", file}, "%f:%l:%d+:.+: %m")
elseif ft == "Objective-C" then
lint("clang", "xcrun", {"clang", "-fsyntax-only", "-Wall", "-Wextra", file}, "%f:%l:%d+:.+: %m")
elseif ft == "d" then
lint("dmd", "dmd", {"-color=off", "-o-", "-w", "-wi", "-c", file}, "%f%(%l%):.+: %m")
elseif ft == "java" then