Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Use phpcs.xml.dist instead of custom-named phpcs.ruleset.xml #19
Incorporating improvements from xwp/wp-dev-lib#243:
When the standard filenames are used, they do not need to be supplied on the command line and will be automatically discovered by PHPCS by traversing the directory tree, just as ESLint and any number of other tools do.
Additionally, in the past PHPCS-lib would often need to get invoked like:
phpcs -s --extensions=php .
These arguments are now unnecessary and are supplied by the default ruleset:
First realized in #2 (comment)
PhpStorm should soon support automatically looking for
FYI: I also blogged about the background for this change in https://make.xwp.co/2017/06/04/reducing-command-line-args-required-for-running-phpcs/