We have a new PHPCS standard for WP-CLI called WPCliCS (props @jrfnl). It is part of the wp-cli/wp-cli-tests package starting with version v2.1.0.
To adopt & enforce this new standard, the following actions need to be taken for this repository:
A sample PR for a simple repository can be seen here: https://github.com/wp-cli/maintenance-mode-command/pull/3/files
Related wp-cli/wp-cli#5179
We have a new PHPCS standard for WP-CLI called
WPCliCS(props @jrfnl). It is part of thewp-cli/wp-cli-testspackage starting with version v2.1.0.To adopt & enforce this new standard, the following actions need to be taken for this repository:
Create a PR that adds a custom ruleset
phpcs.xml.distto the repositoryphpcs.xml.distfile.distignoreto ignorephpcs.xml.dist&phpunit.xml.dist.gitignoreto ignorephpunit.xml,phpcs.xml&.phpcs.xml^2.1of thewp-cli/wp-cli-testsas a dev dependencyMake any required changes to the code that fail the checks from the above ruleset in separate PRs
Merge thre ruleset once all required changes have been processed and merged
A sample PR for a simple repository can be seen here: https://github.com/wp-cli/maintenance-mode-command/pull/3/files
Related wp-cli/wp-cli#5179