2012-02-20 05:20:48 -05:00
|
|
|
"============================================================================
|
|
|
|
"File: pylint.vim
|
|
|
|
"Description: Syntax checking plugin for syntastic.vim
|
|
|
|
"Author: Parantapa Bhattacharya <parantapa at gmail dot com>
|
|
|
|
"
|
|
|
|
"============================================================================
|
|
|
|
function! SyntaxCheckers_python_GetLocList()
|
2012-03-03 22:34:55 -05:00
|
|
|
let makeprg = 'pylint '.g:syntastic_python_checker_args.' -f parseable -r n -i y ' .
|
2012-02-20 05:20:48 -05:00
|
|
|
\ shellescape(expand('%')) .
|
2012-06-27 13:21:43 -04:00
|
|
|
\ ' 2>&1 \| sed ''s_: \[\([RCW]\)_: \[W] \[\1_''' .
|
|
|
|
\ ' \| sed ''s_: \[\([FE]\)_:\ \[E] \[\1_'''
|
|
|
|
let errorformat = '%f:%l: [%t] %m,%Z,%-GNo config %m'
|
2012-02-20 05:20:48 -05:00
|
|
|
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
|
|
|
|
endfunction
|