From 6b6e2d1d3750082c1963c13a59b5a6100b0582c9 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Wed, 7 Dec 2011 14:02:31 +0000 Subject: [PATCH] php checker: ignore the csv headers in the phpcs errorformat --- syntax_checkers/php.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax_checkers/php.vim b/syntax_checkers/php.vim index 68c0f116..2cf3891b 100644 --- a/syntax_checkers/php.vim +++ b/syntax_checkers/php.vim @@ -48,6 +48,6 @@ endfunction function! s:GetPHPCSErrors() let makeprg = "phpcs " . g:syntastic_phpcs_conf . " --report=csv ".shellescape(expand('%')) - let errorformat = '"%f"\,%l\,%c\,%t%*[a-zA-Z]\,"%m"\,%*[a-zA-Z0-9_.-]\,%*[0-9]' + let errorformat = '%-GFile\,Line\,Column\,Type\,Message\,Source\,Severity,"%f"\,%l\,%c\,%t%*[a-zA-Z]\,"%m"\,%*[a-zA-Z0-9_.-]\,%*[0-9]' return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) endfunction