#427 Implement buffer variable overrides for all linter options

This commit is contained in:
w0rp
2017-04-16 01:24:08 +01:00
parent e80116cee0
commit e97dada261
45 changed files with 117 additions and 108 deletions

View File

@@ -26,7 +26,7 @@ function! ale_linters#sh#shell#GetExecutable(buffer) abort
endfor
endif
return g:ale_linters_sh_shell_default_shell
return ale#Var(a:buffer, 'linters_sh_shell_default_shell')
endfunction
function! ale_linters#sh#shell#GetCommand(buffer) abort

View File

@@ -17,7 +17,7 @@ let g:ale_sh_shellcheck_options =
\ get(g:, 'ale_sh_shellcheck_options', '')
function! ale_linters#sh#shellcheck#GetExecutable(buffer) abort
return g:ale_sh_shellcheck_executable
return ale#Var(a:buffer, 'sh_shellcheck_executable')
endfunction
if g:ale_linters_sh_shellcheck_exclusions !=# ''
@@ -40,7 +40,7 @@ endfunction
function! ale_linters#sh#shellcheck#GetCommand(buffer) abort
return ale_linters#sh#shellcheck#GetExecutable(a:buffer)
\ . ' ' . g:ale_sh_shellcheck_options
\ . ' ' . ale#Var(a:buffer, 'sh_shellcheck_options')
\ . ' ' . s:exclude_option . ' ' . s:GetDialectArgument() . ' -f gcc -'
endfunction