Closed benlk closed 5 years ago
For WPCS, we recommend https://github.com/Dealerdirect/phpcodesniffer-composer-installer, which handles the registration of all of the installed standards - no new to set the installed_paths
config value manually, for single or multiple standards.
That's very cool, and you should link to that from README.md in this repository and from https://vip.wordpress.com/documentation/how-to-install-php-code-sniffer-for-wordpress-com-vip/
README.md says:
However, the installation instructions at https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/blob/0.14.1/README.md do not contain any guidance on having multiple paths when using
phpcs --config-set
; the only examples given have a single directory listed.https://vip.wordpress.com/documentation/how-to-install-php-code-sniffer-for-wordpress-com-vip/ provides the following useful example:
If that's the only URL at which VIP wants to make that documentation example, then these coding standards should link to that URL. Otherwise, the docs here should include that example, and/or the docs in WordPress-Coding-Standards/WordPress-Coding-Standards should be extended to cover multiple test standards.