Closed dotherightthing closed 5 years ago
@dotherightthing I ran into the same thing but it turns out you can just pass the path to your phpcs.xml
to the standard
option rather than WordPress
and it will use that config file.
@ataylorme is right. The one of the purposes of standard
option is to specify custom config file. I've updated the docs to make this a little bit cleaner.
I uses phpcs on WordPress projects, via both Gulp/Travis and Sublime Text.
During local development, I've excluded some of the sniffs in
phpcs.xml
, in my project root:However these are ignored by gulp-phpcs and I need to duplicate them into the
exclude
array before gulp-phpcs will respect them:In Sublime Text, I use phpcs via SublimeLinter-phpcs. I can configure that plugin to pick up my
phpcs.xml
like so:Sublime Text > Preferences > Package Settings > SublimeLinter > Settings
Is it possible to do something similar in gulp-phpcs so that these exclusions only need to be maintained in one place?