Find executable for shellcheck
Wanted to be able to use `shellcheck` that was installed in node_modules.
This commit is contained in:
parent
0a0535546f
commit
80ef6ef6a7
1 changed files with 6 additions and 1 deletions
|
@ -12,11 +12,16 @@ let g:ale_sh_shellcheck_exclusions =
|
||||||
let g:ale_sh_shellcheck_executable =
|
let g:ale_sh_shellcheck_executable =
|
||||||
\ get(g:, 'ale_sh_shellcheck_executable', 'shellcheck')
|
\ get(g:, 'ale_sh_shellcheck_executable', 'shellcheck')
|
||||||
|
|
||||||
|
let g:ale_sh_shellcheck_use_global =
|
||||||
|
\ get(g:, 'ale_sh_shellcheck_use_global', 0)
|
||||||
|
|
||||||
let g:ale_sh_shellcheck_options =
|
let g:ale_sh_shellcheck_options =
|
||||||
\ get(g:, 'ale_sh_shellcheck_options', '')
|
\ get(g:, 'ale_sh_shellcheck_options', '')
|
||||||
|
|
||||||
function! ale_linters#sh#shellcheck#GetExecutable(buffer) abort
|
function! ale_linters#sh#shellcheck#GetExecutable(buffer) abort
|
||||||
return ale#Var(a:buffer, 'sh_shellcheck_executable')
|
return ale#node#FindExecutable(a:buffer, 'sh_shellcheck', [
|
||||||
|
\ 'node_modules/.bin/shellcheck',
|
||||||
|
\])
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! ale_linters#sh#shellcheck#GetDialectArgument(buffer) abort
|
function! ale_linters#sh#shellcheck#GetDialectArgument(buffer) abort
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue