-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
Milestone
Description
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:
-
Create a PR that adds a custom ruleset
phpcs.xml.distto the repository- Add
phpcs.xml.distfile - Adapt
.distignoreto ignorephpcs.xml.dist&phpunit.xml.dist - Adapt
.gitignoreto ignorephpunit.xml,phpcs.xml&.phpcs.xml - Require version
^2.1of thewp-cli/wp-cli-testsas a dev dependency
- Add
-
Make 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 #5179