mirror of
https://github.com/Hopiu/micro.git
synced 2026-03-17 06:20:28 +00:00
Merge pull request #3657 from Andriamanitra/PR3656-continuation
plugin: linter: add ruff to default configuration
This commit is contained in:
commit
bf4156c490
2 changed files with 8 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue