All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
1 ===============================================================================
2 ALE YAML Integration *ale-yaml-options*
5 ===============================================================================
6 actionlint *ale-yaml-actionlint*
8 Website: https://github.com/rhysd/actionlint
12 -------------------------------------------------------------------------------
14 See installation guide: https://github.com/rhysd/actionlint#quick-start
16 This linter is disabled by default and must be enabled by setting `g:ale_linters`.
17 To enable it only for Github Action YAML files a configuration like this is
21 au BufRead,BufNewFile */.github/*/*.y{,a}ml
22 \ let b:ale_linters = {'yaml': ['actionlint']}
25 -------------------------------------------------------------------------------
27 *ale-options.yaml_actionlint_executable*
28 *g:ale_yaml_actionlint_executable*
29 *b:ale_yaml_actionlint_executable*
30 yaml_actionlint_executable
31 g:ale_yaml_actionlint_executable
33 Default: `'actionlint'`
35 This variable can be set to change the path to actionlint.
37 *ale-options.yaml_actionlint_options*
38 *g:ale_yaml_actionlint_options*
39 *b:ale_yaml_actionlint_options*
40 yaml_actionlint_options
41 g:ale_yaml_actionlint_options
45 This variable can be set to add extra options to actionlint executable.
47 For example, to disable running `shellcheck` and `pyflakes` external commands,
50 let g:ale_yaml_actionlint_options = '-shellcheck= -pyflakes='
52 Please note that passing `-format` as option is not supported at the moment.
55 ===============================================================================
56 circleci *ale-yaml-circleci*
58 Website: https://circleci.com/docs/2.0/local-cli
62 -------------------------------------------------------------------------------
64 Follow the instructions on the website, and make sure to test that you can
65 validate configuration files with: >
67 circleci config validate - < .circleci/config.yml
70 As long as the validator runs correctly, you should be able to see errors when
71 you save the configuration file. The validator doesn't run as you type because
72 it sends network requests, and running too often would overload the circleci
76 ===============================================================================
77 prettier *ale-yaml-prettier*
79 Website: https://github.com/prettier/prettier
83 -------------------------------------------------------------------------------
85 Install prettier either globally or locally: >
87 npm install prettier -g # global
88 npm install prettier # local
91 ===============================================================================
92 spectral *ale-yaml-spectral*
94 Website: https://github.com/stoplightio/spectral
98 -------------------------------------------------------------------------------
100 Install spectral either globally or locally: >
102 npm install @stoplight/spectral -g # global
103 npm install @stoplight/spectral # local
106 -------------------------------------------------------------------------------
108 *ale-options.yaml_spectral_executable*
109 *g:ale_yaml_spectral_executable*
110 *b:ale_yaml_spectral_executable*
111 yaml_spectral_executable
112 g:ale_yaml_spectral_executable
114 Default: `'spectral'`
116 This variable can be set to change the path to spectral.
118 *ale-options.yaml_spectral_use_global*
119 *g:ale_yaml_spectral_use_global*
120 *b:ale_yaml_spectral_use_global*
121 yaml_spectral_use_global
122 g:ale_yaml_spectral_use_global
124 Default: `get(g:, 'ale_use_global_executables', 0)`
126 See |ale-integrations-local-executables|
129 ===============================================================================
130 swaglint *ale-yaml-swaglint*
132 Website: https://github.com/byCedric/swaglint
136 -------------------------------------------------------------------------------
138 Install swaglint either globally or locally: >
140 npm install swaglint -g # global
141 npm install swaglint # local
144 -------------------------------------------------------------------------------
146 *ale-options.yaml_swaglint_executable*
147 *g:ale_yaml_swaglint_executable*
148 *b:ale_yaml_swaglint_executable*
149 yaml_swaglint_executable
150 g:ale_yaml_swaglint_executable
152 Default: `'swaglint'`
154 This variable can be set to change the path to swaglint.
156 *ale-options.yaml_swaglint_use_global*
157 *g:ale_yaml_swaglint_use_global*
158 *b:ale_yaml_swaglint_use_global*
159 yaml_swaglint_use_global
160 g:ale_yaml_swaglint_use_global
162 Default: `get(g:, 'ale_use_global_executables', 0)`
164 See |ale-integrations-local-executables|
167 ===============================================================================
168 yaml-language-server *ale-yaml-language-server*
170 Website: https://github.com/redhat-developer/yaml-language-server
174 -------------------------------------------------------------------------------
176 Install yaml-language-server either globally or locally: >
178 npm install yaml-language-server -g # global
179 npm install yaml-language-server # local
182 -------------------------------------------------------------------------------
184 *ale-options.yaml_ls_executable*
185 *g:ale_yaml_ls_executable*
186 *b:ale_yaml_ls_executable*
188 g:ale_yaml_ls_executable
190 Default: `'yaml-language-server'`
192 This variable can be set to change the path to yaml-language-server.
194 *ale-options.yaml_ls_config*
195 *g:ale_yaml_ls_config*
196 *b:ale_yaml_ls_config*
202 A Dictionary for settings to pass to the language server. For example, to
203 enable the schema store, you can do use the following in your yaml ftplugin
206 let b:ale_yaml_ls_config = {
216 require("ale").setup.buffer({
226 Consult the yaml-language-server documentation for more information about
229 *ale-options.yaml_ls_use_global*
230 *g:ale_yaml_ls_use_global*
231 *b:ale_yaml_ls_use_global*
233 g:ale_yaml_ls_use_global
235 Default: `get(g:, 'ale_use_global_executables', 0)`
237 See |ale-integrations-local-executables|
240 ===============================================================================
241 yamlfix *ale-yaml-yamlfix*
243 Website: https://lyz-code.github.io/yamlfix
247 -------------------------------------------------------------------------------
254 -------------------------------------------------------------------------------
256 *ale-options.yaml_yamlfix_executable*
257 *g:ale_yaml_yamlfix_executable*
258 *b:ale_yaml_yamlfix_executable*
259 yaml_yamlfix_executable
260 g:ale_yaml_yamlfix_executable
264 See |ale-integrations-local-executables|
266 *ale-options.yaml_yamlfix_options*
267 *g:ale_yaml_yamlfix_options*
268 *b:ale_yaml_yamlfix_options*
270 g:ale_yaml_yamlfix_options
274 This variable can be set to pass extra options to yamlfix.
276 *ale-options.yaml_yamlfix_use_global*
277 *g:ale_yaml_yamlfix_use_global*
278 *b:ale_yaml_yamlfix_use_global*
279 yaml_yamlfix_use_global
280 g:ale_yaml_yamlfix_use_global
282 Default: `get(g:, 'ale_use_global_executables', 0)`
284 See |ale-integrations-local-executables|
287 ===============================================================================
288 yamlfmt *ale-yaml-yamlfmt*
290 Website: https://github.com/google/yamlfmt
293 -------------------------------------------------------------------------------
301 -------------------------------------------------------------------------------
303 *ale-options.yaml_yamlfmt_executable*
304 *g:ale_yaml_yamlfmt_executable*
305 *b:ale_yaml_yamlfmt_executable*
306 yaml_yamlfmt_executable
307 g:ale_yaml_yamlfmt_executable
311 See |ale-integrations-local-executables|
313 *ale-options.yaml_yamlfmt_options*
314 *g:ale_yaml_yamlfmt_options*
315 *b:ale_yaml_yamlfmt_options*
317 g:ale_yaml_yamlfmt_options
321 This variable can be set to pass extra options to yamlfmt.
323 *ale-options.yaml_yamlfmt_use_global*
324 *g:ale_yaml_yamlfmt_use_global*
325 *b:ale_yaml_yamlfmt_use_global*
326 yaml_yamlfmt_use_global
327 g:ale_yaml_yamlfmt_use_global
329 Default: `get(g:, 'ale_use_global_executables', 0)`
331 See |ale-integrations-local-executables|
334 ===============================================================================
335 yamllint *ale-yaml-yamllint*
337 Website: https://github.com/adrienverge/yamllint
340 -------------------------------------------------------------------------------
343 Install yamllint in your a virtualenv directory, locally, or globally: >
345 pip install yamllint # After activating virtualenv
346 pip install --user yamllint # Install to ~/.local/bin
347 sudo pip install yamllint # Install globally
349 See |g:ale_virtualenv_dir_names| for configuring how ALE searches for
350 virtualenv directories.
353 -------------------------------------------------------------------------------
355 *ale-options.yaml_yamllint_executable*
356 *g:ale_yaml_yamllint_executable*
357 *b:ale_yaml_yamllint_executable*
358 yaml_yamllint_executable
359 g:ale_yaml_yamllint_executable
361 Default: `'yamllint'`
363 This variable can be set to change the path to yamllint.
365 *ale-options.yaml_yamllint_options*
366 *g:ale_yaml_yamllint_options*
367 *b:ale_yaml_yamllint_options*
368 yaml_yamllint_options
369 g:ale_yaml_yamllint_options
373 This variable can be set to pass additional options to yamllint.
376 ===============================================================================
377 gitlablint *ale-yaml-gitlablint*
379 Website: https://github.com/elijah-roberts/gitlab-lint
382 -------------------------------------------------------------------------------
385 Install yamllint in your a virtualenv directory, locally, or globally: >
387 pip3 install gitlab_lint # After activating virtualenv
388 pip3 install --user gitlab_lint # Install to ~/.local/bin
389 sudo pip3 install gitlab_lint # Install globally
391 See |g:ale_virtualenv_dir_names| for configuring how ALE searches for
392 virtualenv directories.
394 Is recommended to use |g:ale_pattern_options| to enable this linter so it only
395 applies to 'gitlab-ci.yml' files and not all yaml files:
397 let g:ale_pattern_options = {
398 \ '.gitlab-ci\.yml$': {
399 \ 'ale_linters': ['gitlablint'],
404 -------------------------------------------------------------------------------
406 *ale-options.yaml_gitlablint_executable*
407 *g:ale_yaml_gitlablint_executable*
408 *b:ale_yaml_gitlablint_executable*
409 yaml_gitlablint_executable
410 g:ale_yaml_gitlablint_executable
414 This variable can be set to change the path to gll.
416 *ale-options.yaml_gitlablint_options*
417 *g:ale_yaml_gitlablint_options*
418 *b:ale_yaml_gitlablint_options*
419 yaml_gitlablint_options
420 g:ale_yaml_gitlablint_options
424 This variable can be set to pass additional options to gll.
427 ===============================================================================
430 Website: https://github.com/mikefarah/yq
433 -------------------------------------------------------------------------------
438 wget https://github.com/mikefarah/yq/releases/download/${VERSION}/${BINARY}.tar.gz -O - | tar xz && mv ${BINARY} /usr/bin/yq
441 -------------------------------------------------------------------------------
443 *ale-options.yaml_yq_executable*
444 *g:ale_yaml_yq_executable*
445 *b:ale_yaml_yq_executable*
447 g:ale_yaml_yq_executable
451 This variable can be set to change the path to yq.
453 *ale-options.yaml_yq_options*
454 *g:ale_yaml_yq_options*
455 *b:ale_yaml_yq_options*
457 g:ale_yaml_yq_options
461 This variable can be set to pass additional options to yq.
463 *ale-options.yaml_yq_filters*
464 *g:ale_yaml_yq_filters*
465 *b:ale_yaml_yq_filters*
467 g:ale_yaml_yq_filters
471 This option can be changed to pass additional filters to yq
473 ===============================================================================
474 vim:tw=78:ts=2:sts=2:sw=2:ft=help:norl: