From 1315a85aee1e976c27d808682152e2727985443b Mon Sep 17 00:00:00 2001 From: Chronial Date: Sun, 17 Mar 2013 11:59:54 +0100 Subject: [PATCH] recognize flake8 2.0 error output --- syntax_checkers/python/flake8.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/syntax_checkers/python/flake8.vim b/syntax_checkers/python/flake8.vim index 551c93b6..6c972fac 100644 --- a/syntax_checkers/python/flake8.vim +++ b/syntax_checkers/python/flake8.vim @@ -34,7 +34,11 @@ function! SyntaxCheckers_python_flake8_GetLocList() let makeprg = syntastic#makeprg#build({ \ 'exe': '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 }) endfunction