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-03-12 15:15:51 -04:00
|
|
|
\ ' \|& sed ''s_: \[[RC]_: \[W_''' .
|
2012-02-20 05:20:48 -05:00
|
|
|
\ ' \| sed ''s_: \[[F]_:\ \[E_'''
|
2012-03-04 02:33:09 -05:00
|
|
|
let errorformat = '%f:%l: [%t%n%.%#] %m,%f:%l: [%t%.%#] %m,%Z,%-GNo config%m'
|
2012-02-20 05:20:48 -05:00
|
|
|
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
|
|
|
|
endfunction
|