Closed schlessera closed 5 years ago
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.
WPCliCS
wp-cli/wp-cli-tests
To adopt & enforce this new standard, the following actions need to be taken for this repository:
[x] Create a PR that adds a custom ruleset phpcs.xml.dist to the repository
phpcs.xml.dist
.distignore
phpunit.xml.dist
.gitignore
phpunit.xml
phpcs.xml
.phpcs.xml
^2.1
A sample PR for a simple repository can be seen here: https://github.com/wp-cli/maintenance-mode-command/pull/3/files
Related https://github.com/wp-cli/wp-cli/issues/5179
We have a new PHPCS standard for WP-CLI called
WPCliCS
(props @jrfnl). It is part of thewp-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:
[x] Create a PR that adds a custom ruleset
phpcs.xml.dist
to the repositoryphpcs.xml.dist
file.distignore
to ignorephpcs.xml.dist
&phpunit.xml.dist
.gitignore
to ignorephpunit.xml
,phpcs.xml
&.phpcs.xml
^2.1
of thewp-cli/wp-cli-tests
as a dev dependencyA sample PR for a simple repository can be seen here: https://github.com/wp-cli/maintenance-mode-command/pull/3/files
Related https://github.com/wp-cli/wp-cli/issues/5179