diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f71f8711665bd63ef32aac9c56fa0102f1066ed3..740a6bae8b391d3abf816e348c2626529996d734 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,7 +22,8 @@ before_script: # Install PHPCS and WPCS - composer global require automattic/vipwpcs - - phpcs --config-set installed_paths $HOME/.composer/vendor/wp-coding-standards/wpcs,$HOME/.composer/vendor/automattic/vipwpcs + - composer global require slevomat/coding-standard + - phpcs --config-set installed_paths $HOME/.composer/vendor/wp-coding-standards/wpcs,$HOME/.composer/vendor/automattic/vipwpcs,$HOME/.composer/vendor/slevomat/coding-standard PHPunit:PHP5.3:MySQL: image: containers.ethitter.com:443/docker/images/php:5.3 diff --git a/phpcs.xml b/phpcs.xml index 86c05ab53a92199225ab233e877ae644e600b141..a7f12d6c6bdea95f27a3814dd02eaff53f63843e 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -21,7 +21,8 @@ <rule ref="WordPress" /> <rule ref="WordPressVIPMinimum" /> - <!--<rule ref="WordPress-VIP-Go" />--> + <rule ref="WordPress-VIP-Go" /> + <rule ref="SlevomatCodingStandard" /> <config name="minimum_supported_wp_version" value="4.9" />