mirror of
https://github.com/dense-analysis/ale
synced 2025-02-06 15:32:10 +00:00
Fix 4177 set default yaml linters (#4178)
* Fix 4177 set default yaml linters * Fix 4177 set default yaml linters
This commit is contained in:
parent
c694a24188
commit
204e6294cf
@ -57,6 +57,7 @@ let s:default_ale_linters = {
|
|||||||
\ 'vue': ['eslint', 'vls'],
|
\ 'vue': ['eslint', 'vls'],
|
||||||
\ 'zsh': ['shell'],
|
\ 'zsh': ['shell'],
|
||||||
\ 'v': ['v'],
|
\ 'v': ['v'],
|
||||||
|
\ 'yaml': ['spectral', 'yaml-language-server', 'yamllint'],
|
||||||
\}
|
\}
|
||||||
|
|
||||||
" Testing/debugging helper to unload all linters.
|
" Testing/debugging helper to unload all linters.
|
||||||
|
@ -13,6 +13,14 @@ Installation
|
|||||||
|
|
||||||
See installation guide: https://github.com/rhysd/actionlint#quick-start
|
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
|
Options
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -657,11 +657,11 @@ formatting.
|
|||||||
* XML
|
* XML
|
||||||
* [xmllint](http://xmlsoft.org/xmllint.html)
|
* [xmllint](http://xmlsoft.org/xmllint.html)
|
||||||
* YAML
|
* YAML
|
||||||
* [actionlint](https://github.com/rhysd/actionlint)
|
* [actionlint](https://github.com/rhysd/actionlint) :warning:
|
||||||
* [circleci](https://circleci.com/docs/2.0/local-cli) :floppy_disk:
|
* [circleci](https://circleci.com/docs/2.0/local-cli) :floppy_disk: :warning:
|
||||||
* [prettier](https://github.com/prettier/prettier)
|
* [prettier](https://github.com/prettier/prettier)
|
||||||
* [spectral](https://github.com/stoplightio/spectral)
|
* [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)
|
* [yaml-language-server](https://github.com/redhat-developer/yaml-language-server)
|
||||||
* [yamlfix](https://lyz-code.github.io/yamlfix)
|
* [yamlfix](https://lyz-code.github.io/yamlfix)
|
||||||
* [yamllint](https://yamllint.readthedocs.io/)
|
* [yamllint](https://yamllint.readthedocs.io/)
|
||||||
|
Loading…
Reference in New Issue
Block a user