Vimlint: add g:syntastic_vimlint_options.
This commit is contained in:
parent
4c5ff42723
commit
af49886446
@ -19,7 +19,7 @@ if has('reltime')
|
||||
lockvar! g:syntastic_start
|
||||
endif
|
||||
|
||||
let g:syntastic_version = '3.4.0-93'
|
||||
let g:syntastic_version = '3.4.0-94'
|
||||
lockvar g:syntastic_version
|
||||
|
||||
" Sanity checks {{{1
|
||||
|
@ -53,7 +53,7 @@ function! SyntaxCheckers_vim_vimlint_GetLocList() dict
|
||||
" value 3: the message is a warning
|
||||
"
|
||||
" References: :help vimlint-errorcode and :help vimlint-variables
|
||||
return vimlint#vimlint(expand('%'), {
|
||||
let param = {
|
||||
\ 'output': function('s:vimlintOutput'),
|
||||
\ 'quiet': 1,
|
||||
\ 'EVL102': 3,
|
||||
@ -63,7 +63,16 @@ function! SyntaxCheckers_vim_vimlint_GetLocList() dict
|
||||
\ 'EVL106': 3,
|
||||
\ 'EVL201': 3,
|
||||
\ 'EVL204': 3,
|
||||
\ 'EVL205': 3 })
|
||||
\ 'EVL205': 3 }
|
||||
|
||||
if exists('g:syntastic_vimlint_options')
|
||||
if type(g:syntastic_vimlint_options) == type({})
|
||||
let options = filter(copy(g:syntastic_vimlint_options), 'v:key =~# "\\m^EVL"')
|
||||
call extend(param, options, 'force')
|
||||
endif
|
||||
endif
|
||||
|
||||
return vimlint#vimlint(expand('%'), param)
|
||||
endfunction
|
||||
|
||||
" @vimlint(EVL103, 1, a:filename)
|
||||
|
Loading…
Reference in New Issue
Block a user