fix #4687 - only lint one file with actionlint (#4688)

This commit is contained in:
Tim Carry 2024-02-06 02:23:26 +01:00 committed by GitHub
parent 1b24bd3f5f
commit 6fd9f3c54f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@ function! ale_linters#yaml#actionlint#GetCommand(buffer) abort
let l:options .= ale#Pad('-oneline')
endif
return '%e' . ale#Pad(l:options)
return '%e' . ale#Pad(l:options) . ' - '
endfunction
function! ale_linters#yaml#actionlint#Handle(buffer, lines) abort

View File

@ -42,16 +42,16 @@ Execute(Shellcheck issues should be reported at the line they appear):
\ 'validate.yml:19:9: shellcheck reported issue in this script: SC2086:info:1:15: Double quote to prevent globbing and word splitting [shellcheck]'
\ ])
Execute(Command should always have -no-color and -oneline options):
Execute(Command should always have -no-color, -oneline and - options):
let g:ale_yaml_actionlint_options = ''
AssertEqual
\ '%e -no-color -oneline',
\ '%e -no-color -oneline - ',
\ ale_linters#yaml#actionlint#GetCommand(bufnr(''))
Execute(Options should be added to command):
let g:ale_yaml_actionlint_options = '-shellcheck= -pyflakes='
AssertEqual
\ '%e -shellcheck= -pyflakes= -no-color -oneline',
\ '%e -shellcheck= -pyflakes= -no-color -oneline - ',
\ ale_linters#yaml#actionlint#GetCommand(bufnr(''))