Checker python/pylama: add option "--force".

This commit is contained in:
LCD 47 2015-06-03 08:13:50 +03:00
parent e15ebd3367
commit 0470fff0c5
2 changed files with 7 additions and 2 deletions

View File

@ -19,7 +19,7 @@ if has('reltime')
lockvar! g:_SYNTASTIC_START
endif
let g:_SYNTASTIC_VERSION = '3.6.0-89'
let g:_SYNTASTIC_VERSION = '3.6.0-90'
lockvar g:_SYNTASTIC_VERSION
" Sanity checks {{{1

View File

@ -27,7 +27,12 @@ function! SyntaxCheckers_python_pylama_GetHighlightRegex(item)
endfunction
function! SyntaxCheckers_python_pylama_GetLocList() dict
let makeprg = self.makeprgBuild({ 'args_after': '-f pep8' })
if !exists('s:pylama_new')
let s:pylama_new = syntastic#util#versionIsAtLeast(self.getVersion(), [4])
endif
let makeprg = self.makeprgBuild({
\ 'args_after': '-f pep8' . (s:pylama_new ? ' --force' : '') })
" TODO: "WARNING:pylama:..." messages are probably a logging bug
let errorformat =