diff options
author | Horacio Sanson <hsanson@gmail.com> | 2022-05-03 10:34:52 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-03 10:34:52 +0900 |
commit | 204e6294cfa0475e3437364d1c3dff6157fa1b83 (patch) | |
tree | 5dc8afd9ceb722890110de7e1b5d7556a9e8d46a | |
parent | c694a241883ec5c33f972a612cfcd464cda3c5fa (diff) | |
download | ale-204e6294cfa0475e3437364d1c3dff6157fa1b83.zip |
Fix 4177 set default yaml linters (#4178)
* Fix 4177 set default yaml linters
* Fix 4177 set default yaml linters
-rw-r--r-- | autoload/ale/linter.vim | 1 | ||||
-rw-r--r-- | doc/ale-yaml.txt | 8 | ||||
-rw-r--r-- | supported-tools.md | 6 |
3 files changed, 12 insertions, 3 deletions
diff --git a/autoload/ale/linter.vim b/autoload/ale/linter.vim index 98839488..1d442a03 100644 --- a/autoload/ale/linter.vim +++ b/autoload/ale/linter.vim @@ -57,6 +57,7 @@ let s:default_ale_linters = { \ 'vue': ['eslint', 'vls'], \ 'zsh': ['shell'], \ 'v': ['v'], +\ 'yaml': ['spectral', 'yaml-language-server', 'yamllint'], \} " Testing/debugging helper to unload all linters. diff --git a/doc/ale-yaml.txt b/doc/ale-yaml.txt index 7c513fe4..39f5121b 100644 --- a/doc/ale-yaml.txt +++ b/doc/ale-yaml.txt @@ -13,6 +13,14 @@ Installation See installation guide: https://github.com/rhysd/actionlint#quick-start +This linter is disabled by default and must be enabled byt setting `g:ale_linters`. +To enable it only for Github Action YAML files a configuration like this is +better: + +> + au BufRead,BufNewFile */.github/*/*.y.?ml let b:ale_linters = {'yaml': ['actionlint']} +< + Options ------------------------------------------------------------------------------- diff --git a/supported-tools.md b/supported-tools.md index a3b9fcb6..94dbe4fc 100644 --- a/supported-tools.md +++ b/supported-tools.md @@ -657,11 +657,11 @@ formatting. * XML * [xmllint](http://xmlsoft.org/xmllint.html) * YAML - * [actionlint](https://github.com/rhysd/actionlint) - * [circleci](https://circleci.com/docs/2.0/local-cli) :floppy_disk: + * [actionlint](https://github.com/rhysd/actionlint) :warning: + * [circleci](https://circleci.com/docs/2.0/local-cli) :floppy_disk: :warning: * [prettier](https://github.com/prettier/prettier) * [spectral](https://github.com/stoplightio/spectral) - * [swaglint](https://github.com/byCedric/swaglint) + * [swaglint](https://github.com/byCedric/swaglint) :warning: * [yaml-language-server](https://github.com/redhat-developer/yaml-language-server) * [yamlfix](https://lyz-code.github.io/yamlfix) * [yamllint](https://yamllint.readthedocs.io/) |