We have a new PHPCS standard for WP-CLI called WP_CLI_CS (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#5201
We have a new PHPCS standard for WP-CLI called
WP_CLI_CS(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 the 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#5201