From 50561a87f7dfbc297838dfce784c60a71e614a39 Mon Sep 17 00:00:00 2001 From: Chaz Lever Date: Tue, 22 Jan 2013 15:19:28 -0500 Subject: [PATCH] Fix flake8 error/warning checking Error/warning checking did not correctly parse output from flake8. This resulted in Syntastic incorrectly displaying some warnings as errors. --- syntax_checkers/python/flake8.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax_checkers/python/flake8.vim b/syntax_checkers/python/flake8.vim index 5dbd4a5c..48306660 100644 --- a/syntax_checkers/python/flake8.vim +++ b/syntax_checkers/python/flake8.vim @@ -26,6 +26,6 @@ function! SyntaxCheckers_python_GetLocList() \ 'exe': 'flake8', \ 'args': g:syntastic_python_checker_args, \ 'subchecker': 'flake8' }) - let errorformat = '%E%f:%l: could not compile,%-Z%p^,%E%f:%l:%c: %m,%W%f:%l: %m,%-G%.%#' + let errorformat = '%E%f:%l: could not compile,%-Z%p^,%E%f:%l:%c: %t%n %m,%E%f:%l: %t%n %m,%-G%.%#' return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) endfunction