5b31495af2
update makeprg builder: * it now accepts `fname`, `tail`, and `post_args` params. * add some doc above syntastic#makeprg#build * update a bunch of checkers to use the new params Still have quite a few checkers that arent using makeprg#build. Including all c* and a few other c-like checkers. And PHP. Not to worried about c* as these checkers are complicated and probably justify having their own logic to build makeprgs.
23 lines
904 B
VimL
23 lines
904 B
VimL
"============================================================================
|
|
"File: pylint.vim
|
|
"Description: Syntax checking plugin for syntastic.vim
|
|
"Author: Parantapa Bhattacharya <parantapa at gmail dot com>
|
|
"
|
|
"============================================================================
|
|
function! SyntaxCheckers_python_GetLocList()
|
|
let makeprg = syntastic#makeprg#build({
|
|
\ 'exe': 'pylint',
|
|
\ 'args': g:syntastic_python_checker_args. ' -f parseable -r n -i y',
|
|
\ 'tail': s:MakeprgTail(),
|
|
\ 'subchecker': 'pylint' })
|
|
let errorformat = '%f:%l: [%t] %m,%Z,%-GNo config %m'
|
|
|
|
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
|
|
endfunction
|
|
|
|
function! s:MakeprgTail()
|
|
return ' 2>&1 \| sed ''s_: \[\([RCW]\)_: \[W] \[\1_''' .
|
|
\ ' \| sed ''s_: \[\([FE]\)_:\ \[E] \[\1_'''
|
|
|
|
endfunction
|