recognize flake8 2.0 error output

This commit is contained in:
Chronial 2013-03-17 11:59:54 +01:00
parent 75a234231b
commit 1315a85aee

View File

@ -34,7 +34,11 @@ function! SyntaxCheckers_python_flake8_GetLocList()
let makeprg = syntastic#makeprg#build({ let makeprg = syntastic#makeprg#build({
\ 'exe': 'flake8', \ 'exe': 'flake8',
\ 'subchecker': 'flake8' }) \ 'subchecker': 'flake8' })
let errorformat = '%E%f:%l: could not compile,%-Z%p^,%E%f:%l:%c: %t%n %m,%E%f:%l: %t%n %m,%-G%.%#' let errorformat = '%E%f:%l: could not compile,%-Z%p^,'.
\'%W%f:%l:%c: F%n %m,'.
\'%W%f:%l:%c: C%n %m,'.
\'%E%f:%l:%c: %t%n %m,'.
\'%E%f:%l: %t%n %m,%-G%.%#'
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
endfunction endfunction