Merge pull request #618 from liamcurry/py3kwarn

Added py3kwarn checker
This commit is contained in:
LCD 47 2013-04-16 22:55:51 -07:00
commit b9700c7a6f

View File

@ -0,0 +1,26 @@
"============================================================================
"File: py3kwarn.vim
"Description: Syntax checking plugin for syntastic.vim
"Authors: Liam Curry <liam@curry.name>
"
"============================================================================
if exists("g:loaded_syntastic_python_py3kwarn_checker")
finish
endif
let g:loaded_syntastic_python_py3kwarn_checker=1
function! SyntaxCheckers_python_py3kwarn_IsAvailable()
return executable('py3kwarn')
endfunction
function! SyntaxCheckers_python_py3kwarn_GetLocList()
let makeprg = syntastic#makeprg#build({
\ 'exe': 'py3kwarn',
\ 'subchecker': 'py3kwarn' })
let errorformat = '%W%f:%l:%c: %m'
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'python',
\ 'name': 'py3kwarn'})