7cd8efec70
bash <4.0
15 lines
761 B
VimL
15 lines
761 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 = 'pylint '.g:syntastic_python_checker_args.' -f parseable -r n -i y ' .
|
|
\ shellescape(expand('%')) .
|
|
\ ' 2>&1 \| sed ''s_: \[[RC]_: \[W_''' .
|
|
\ ' \| sed ''s_: \[[F]_:\ \[E_'''
|
|
let errorformat = '%f:%l: [%t%n%.%#] %m,%f:%l: [%t%.%#] %m,%Z,%-GNo config%m'
|
|
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
|
|
endfunction
|