Add support for actionlint options (#4216)

* Add support for actionlint options

* fix misaligned doc tags
This commit is contained in:
Isman Firmansyah authored and GitHub committed 2022-05-29 22:23:47 +09:00
1 parent ae44f05600
commit 876140832c
4 files changed
+43 -1

No files matched your search

+13 -1
View File
@@ -1,5 +1,17 @@
function! ale#handlers#actionlint#GetCommand(buffer) abort
return '%e --no-color --oneline %t'
let l:options = ale#Var(a:buffer, 'yaml_actionlint_options')
" automatically add --no-color option if not defined
if l:options !~# '--no-color'
let l:options .= ' --no-color'
endif
" automatically add --oneline option if not defined
if l:options !~# '--oneline'
let l:options .= ' --oneline'
endif
return '%e ' . l:options . ' %t'
endfunction
function! ale#handlers#actionlint#Handle(buffer, lines) abort