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 b399a5e

Browse files
committed
phpcs: fix detection of column numbers.
1 parent edb04ee commit b399a5e

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
@@ -22,11 +22,12 @@ let s:save_cpo = &cpo
2222
set cpo&vim
2323

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

2728
let errorformat =
2829
\ '%-GFile\,Line\,Column\,Type\,Message\,Source\,Severity,'.
29-
\ '"%f"\,%l\,%c\,%t%*[a-zA-Z]\,"%m"\,%*[a-zA-Z0-9_.-]\,%*[0-9]'
30+
\ '"%f"\,%l\,%v\,%t%*[a-zA-Z]\,"%m"\,%*[a-zA-Z0-9_.-]\,%*[0-9]'
3031

3132
return SyntasticMake({
3233
\ 'makeprg': makeprg,

0 commit comments

Comments
 (0)