+ elseif ft == "Objective-C" then
+ lint("clang", "xcrun", {"clang", "-fsyntax-only", "-Wall", "-Wextra", 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 == "shell" then
+ lint("shfmt", "shfmt", {file}, "%f:%l:%d+: %m")
+ elseif ft == "swift" and OS == "darwin" then
+ lint("switfc", "xcrun", {"swiftc", file}, "%f:%l:%d+:.+: %m")
+ elseif ft == "swift" and OS == "linux" then
+ lint("switfc", "swiftc", {file}, "%f:%l:%d+:.+: %m")
+ elseif ft == "yaml" then
+ lint("yaml", "yamllint", {"--format", "parsable", file}, "%f:%l:%d+:.+ %m")