From 3defb627a5104c1e98509888fac73e20f5e938dc Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Wed, 7 Dec 2011 14:13:18 +0000 Subject: [PATCH] php checker: add an option to disable phpcs --- syntax_checkers/php.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/syntax_checkers/php.vim b/syntax_checkers/php.vim index 2cf3891b..d48b8e82 100644 --- a/syntax_checkers/php.vim +++ b/syntax_checkers/php.vim @@ -24,6 +24,10 @@ if !exists("g:syntastic_phpcs_conf") let g:syntastic_phpcs_conf = "" endif +if !exists("g:syntastic_phpcs_disable") + let g:syntastic_phpcs_disable = 0 +endif + function! SyntaxCheckers_php_Term(item) let unexpected = matchstr(a:item['text'], "unexpected '[^']\\+'") if len(unexpected) < 1 | return '' | end @@ -33,7 +37,7 @@ endfunction function! SyntaxCheckers_php_GetLocList() let errors = [] - if executable("phpcs") + if !g:syntastic_phpcs_disable && executable("phpcs") let errors = s:GetPHPCSErrors() endif