mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-30 14:47:16 +09:00
Merge pull request #3657 from Andriamanitra/PR3656-continuation
plugin: linter: add ruff to default configuration
This commit is contained in:
@@ -9,6 +9,7 @@ following filetypes and linters:
|
|||||||
* **c++**: g++
|
* **c++**: g++
|
||||||
* **d**: dmd
|
* **d**: dmd
|
||||||
* **go**: go build
|
* **go**: go build
|
||||||
|
* **go**: go vet
|
||||||
* **haskell**: hlint
|
* **haskell**: hlint
|
||||||
* **java**: javac
|
* **java**: javac
|
||||||
* **javascript**: jshint
|
* **javascript**: jshint
|
||||||
@@ -16,11 +17,16 @@ following filetypes and linters:
|
|||||||
* **literate**: lit
|
* **literate**: lit
|
||||||
* **lua**: luacheck
|
* **lua**: luacheck
|
||||||
* **nim**: nim
|
* **nim**: nim
|
||||||
|
* **nix**: nix-linter
|
||||||
* **objective-c**: clang
|
* **objective-c**: clang
|
||||||
* **python**: pyflakes
|
* **python**: flake8
|
||||||
* **python**: mypy
|
* **python**: mypy
|
||||||
|
* **python**: pyflakes
|
||||||
* **python**: pylint
|
* **python**: pylint
|
||||||
|
* **python**: ruff
|
||||||
|
* **rust**: cargo clippy
|
||||||
* **shell**: shfmt
|
* **shell**: shfmt
|
||||||
|
* **shell**: shellcheck
|
||||||
* **swift**: swiftc (MacOS and Linux only)
|
* **swift**: swiftc (MacOS and Linux only)
|
||||||
* **yaml**: yamllint
|
* **yaml**: yamllint
|
||||||
|
|
||||||
|
|||||||
@@ -82,6 +82,7 @@ function preinit()
|
|||||||
makeLinter("pyflakes", "python", "pyflakes", {"%f"}, "%f:%l:.-:? %m")
|
makeLinter("pyflakes", "python", "pyflakes", {"%f"}, "%f:%l:.-:? %m")
|
||||||
makeLinter("mypy", "python", "mypy", {"%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("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("flake8", "python", "flake8", {"%f"}, "%f:%l:%c: %m")
|
||||||
makeLinter("shfmt", "shell", "shfmt", {"%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")
|
makeLinter("shellcheck", "shell", "shellcheck", {"-f", "gcc", "%f"}, "%f:%l:%c:.+: %m")
|
||||||
|
|||||||
Reference in New Issue
Block a user