Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit bb8e259

Browse files
committed
phpcs: move --tab-width to args.
1 parent ffe3085 commit bb8e259

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

syntax_checkers/php/phpcs.vim

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ set cpo&vim
2323

2424
function! SyntaxCheckers_php_phpcs_GetLocList() dict
2525
let makeprg = self.makeprgBuild({
26-
\ 'args_after': '--report=csv --tab-width=' . &tabstop })
26+
\ 'args': '--tab-width=' . &tabstop,
27+
\ 'args_after': '--report=csv' })
2728

2829
let errorformat =
2930
\ '%-GFile\,Line\,Column\,Type\,Message\,Source\,Severity,'.
@@ -37,7 +38,7 @@ endfunction
3738

3839
call g:SyntasticRegistry.CreateAndRegisterChecker({
3940
\ 'filetype': 'php',
40-
\ 'name': 'phpcs'})
41+
\ 'name': 'phpcs' })
4142

4243
let &cpo = s:save_cpo
4344
unlet s:save_cpo

0 commit comments

Comments
 (0)