python/flake8: add some backwards compat

make it match E and W for flake < 2.0
This commit is contained in:
Martin Grenfell 2013-03-18 09:42:22 +00:00
parent 04d96a9019
commit 0ef513a0a8

View File

@ -35,8 +35,8 @@ function! SyntaxCheckers_python_flake8_GetLocList()
\ 'exe': 'flake8', \ 'exe': 'flake8',
\ 'subchecker': 'flake8' }) \ 'subchecker': 'flake8' })
let errorformat = '%E%f:%l: could not compile,%-Z%p^,'. let errorformat = '%E%f:%l: could not compile,%-Z%p^,'.
\'%W%f:%l:%c: F%n %m,'. \'%W%f:%l:%c: %[FE]%n %m,'.
\'%W%f:%l:%c: C%n %m,'. \'%W%f:%l:%c: %[CW]%n %m,'.
\'%E%f:%l:%c: %t%n %m,'. \'%E%f:%l:%c: %t%n %m,'.
\'%E%f:%l: %t%n %m,%-G%.%#' \'%E%f:%l: %t%n %m,%-G%.%#'
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })