Checker yamllint: cleanup.
This commit is contained in:
parent
8c4dadc7e2
commit
cc440f1b40
@ -19,7 +19,7 @@ if has('reltime')
|
||||
lockvar! g:_SYNTASTIC_START
|
||||
endif
|
||||
|
||||
let g:_SYNTASTIC_VERSION = '3.7.0-78'
|
||||
let g:_SYNTASTIC_VERSION = '3.7.0-79'
|
||||
lockvar g:_SYNTASTIC_VERSION
|
||||
|
||||
" Sanity checks {{{1
|
||||
|
@ -1,7 +1,7 @@
|
||||
"============================================================================
|
||||
"File: yamllint.vim
|
||||
"Description: YAML files linting for syntastic.vim
|
||||
"Maintainer: Adrien Vergé <http://yamllint.readthedocs.org/>
|
||||
"Maintainer: Adrien Vergé
|
||||
"License: This program is free software. It comes without any warranty,
|
||||
" to the extent permitted by applicable law. You can redistribute
|
||||
" it and/or modify it under the terms of the Do What The Fuck You
|
||||
@ -27,11 +27,19 @@ function! SyntaxCheckers_yaml_yamllint_GetLocList() dict
|
||||
|
||||
let env = syntastic#util#isRunningWindows() ? {} : { 'TERM': 'dumb' }
|
||||
|
||||
return SyntasticMake({
|
||||
let loclist = SyntasticMake({
|
||||
\ 'makeprg': makeprg,
|
||||
\ 'errorformat': errorformat,
|
||||
\ 'env': env,
|
||||
\ 'returns': [0, 1] })
|
||||
|
||||
for e in loclist
|
||||
if e['type'] ==? 'W'
|
||||
let e['subtype'] = 'Style'
|
||||
endif
|
||||
endfor
|
||||
|
||||
return loclist
|
||||
endfunction
|
||||
|
||||
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||
|
Loading…
Reference in New Issue
Block a user