mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-09 23:05:51 +08:00
Add a script for custom checks to enforce using the abort flag for functions and trailing whitespace, and fix existing issues.
This commit is contained in:
1 parent
e4a4fcd26b
commit
d7ed49f849
36 files changed
+134
-43
No files matched your search
@@ -16,7 +16,7 @@ else
|
||||
let s:exclude_option = ''
|
||||
endif
|
||||
|
||||
function! s:GetDialectArgument()
|
||||
function! s:GetDialectArgument() abort
|
||||
if exists('b:is_bash') && b:is_bash
|
||||
return '-s bash'
|
||||
elseif exists('b:is_sh') && b:is_sh
|
||||
@@ -28,7 +28,7 @@ function! s:GetDialectArgument()
|
||||
return ''
|
||||
endfunction
|
||||
|
||||
function! ale_linters#sh#shellcheck#GetCommand(buffer)
|
||||
function! ale_linters#sh#shellcheck#GetCommand(buffer) abort
|
||||
return 'shellcheck ' . s:exclude_option . ' ' . s:GetDialectArgument() . ' -f gcc -'
|
||||
endfunction
|
||||
|
||||
|
||||
Reference in new issue
Block a user