mirror of
https://github.com/dense-analysis/ale.git
synced 2026-02-08 10:51:06 +08:00
add spectral linter for yaml
ci
This commit is contained in:
@@ -537,6 +537,7 @@ Notes:
|
||||
* `xmllint`
|
||||
* YAML
|
||||
* `prettier`
|
||||
* `spectral`
|
||||
* `swaglint`
|
||||
* `yamlfix`
|
||||
* `yamllint`
|
||||
|
||||
@@ -15,6 +15,38 @@ Install prettier either globally or locally: >
|
||||
npm install prettier -g # global
|
||||
npm install prettier # local
|
||||
<
|
||||
===============================================================================
|
||||
spectral *ale-yaml-spectral*
|
||||
|
||||
Website: https://github.com/stoplightio/spectral
|
||||
|
||||
Installation
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
Install spectral either globally or locally: >
|
||||
|
||||
npm install @stoplight/spectral -g # global
|
||||
npm install @stoplight/spectral # local
|
||||
<
|
||||
|
||||
Options
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
g:ale_yaml_spectral_executable *g:ale_yaml_spectral_executable*
|
||||
*b:ale_yaml_spectral_executable*
|
||||
Type: |String|
|
||||
Default: `'spectral'`
|
||||
|
||||
This variable can be set to change the path to spectral.
|
||||
|
||||
g:ale_yaml_spectral_use_global *g:ale_yaml_spectral_use_global*
|
||||
*b:ale_yaml_spectral_use_global*
|
||||
Type: |String|
|
||||
Default: `get(g:, 'ale_use_global_executables', 0)`
|
||||
|
||||
See |ale-integrations-local-executables|
|
||||
|
||||
|
||||
===============================================================================
|
||||
swaglint *ale-yaml-swaglint*
|
||||
|
||||
|
||||
@@ -3028,6 +3028,7 @@ documented in additional help files.
|
||||
xmllint...............................|ale-xml-xmllint|
|
||||
yaml....................................|ale-yaml-options|
|
||||
prettier..............................|ale-yaml-prettier|
|
||||
spectral..............................|ale-yaml-spectral|
|
||||
swaglint..............................|ale-yaml-swaglint|
|
||||
yamlfix...............................|ale-yaml-yamlfix|
|
||||
yamllint..............................|ale-yaml-yamllint|
|
||||
|
||||
Reference in New Issue
Block a user