diff --git a/runtime/plugins/linter/help/linter.md b/runtime/plugins/linter/help/linter.md index 0e9b9d9498..5ead7cd1c6 100644 --- a/runtime/plugins/linter/help/linter.md +++ b/runtime/plugins/linter/help/linter.md @@ -9,6 +9,7 @@ following filetypes and linters: * **c++**: g++ * **d**: dmd * **go**: go build +* **go**: go vet * **haskell**: hlint * **java**: javac * **javascript**: jshint @@ -16,11 +17,16 @@ following filetypes and linters: * **literate**: lit * **lua**: luacheck * **nim**: nim +* **nix**: nix-linter * **objective-c**: clang -* **python**: pyflakes +* **python**: flake8 * **python**: mypy +* **python**: pyflakes * **python**: pylint +* **python**: ruff +* **rust**: cargo clippy * **shell**: shfmt +* **shell**: shellcheck * **swift**: swiftc (MacOS and Linux only) * **yaml**: yamllint diff --git a/runtime/plugins/linter/linter.lua b/runtime/plugins/linter/linter.lua index 068a8abfdf..db7b65365f 100644 --- a/runtime/plugins/linter/linter.lua +++ b/runtime/plugins/linter/linter.lua @@ -82,6 +82,7 @@ function preinit() makeLinter("pyflakes", "python", "pyflakes", {"%f"}, "%f:%l:.-:? %m") makeLinter("mypy", "python", "mypy", {"%f"}, "%f:%l: %m") makeLinter("pylint", "python", "pylint", {"--output-format=parseable", "--reports=no", "%f"}, "%f:%l: %m") + makeLinter("ruff", "python", "ruff", {"check", "--output-format=concise", "%f"}, "%f:%l:%c: %m") makeLinter("flake8", "python", "flake8", {"%f"}, "%f:%l:%c: %m") makeLinter("shfmt", "shell", "shfmt", {"%f"}, "%f:%l:%c: %m") makeLinter("shellcheck", "shell", "shellcheck", {"-f", "gcc", "%f"}, "%f:%l:%c:.+: %m")