mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 20:54:26 +08:00
@@ -15,7 +15,7 @@ function! ale_linters#yaml#actionlint#GetCommand(buffer) abort
|
|||||||
let l:options .= ale#Pad('-oneline')
|
let l:options .= ale#Pad('-oneline')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
return '%e' . ale#Pad(l:options)
|
return '%e' . ale#Pad(l:options) . ' - '
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! ale_linters#yaml#actionlint#Handle(buffer, lines) abort
|
function! ale_linters#yaml#actionlint#Handle(buffer, lines) abort
|
||||||
|
|||||||
@@ -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]'
|
\ '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 = ''
|
let g:ale_yaml_actionlint_options = ''
|
||||||
|
|
||||||
AssertEqual
|
AssertEqual
|
||||||
\ '%e -no-color -oneline',
|
\ '%e -no-color -oneline - ',
|
||||||
\ ale_linters#yaml#actionlint#GetCommand(bufnr(''))
|
\ ale_linters#yaml#actionlint#GetCommand(bufnr(''))
|
||||||
|
|
||||||
Execute(Options should be added to command):
|
Execute(Options should be added to command):
|
||||||
let g:ale_yaml_actionlint_options = '-shellcheck= -pyflakes='
|
let g:ale_yaml_actionlint_options = '-shellcheck= -pyflakes='
|
||||||
|
|
||||||
AssertEqual
|
AssertEqual
|
||||||
\ '%e -shellcheck= -pyflakes= -no-color -oneline',
|
\ '%e -shellcheck= -pyflakes= -no-color -oneline - ',
|
||||||
\ ale_linters#yaml#actionlint#GetCommand(bufnr(''))
|
\ ale_linters#yaml#actionlint#GetCommand(bufnr(''))
|
||||||
|
|||||||
Reference in New Issue
Block a user