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()
|
|
|
|
let makeprg = 'pylint -f parseable -r n -i y ' .
|
|
|
|
\ shellescape(expand('%')) .
|
|
|
|
\ ' \| sed ''s_: \[[RC]_: \[W_''' .
|
|
|
|
\ ' \| sed ''s_: \[[F]_:\ \[E_'''
|
2012-03-12 01:04:47 -04:00
|
|
|
let errorformat = '%f:%l: [%t%n%.%#] %m,%-GNo config%m'
|
2012-02-20 05:20:48 -05:00
|
|
|
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
|
|
|
|
endfunction
|