diff --git a/composer.json b/composer.json index 68cefb9..16e1add 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,9 @@ "squizlabs/php_codesniffer": "3.*", "wp-coding-standards/wpcs": "*", "yoast/phpunit-polyfills": "^2.0", - "dealerdirect/phpcodesniffer-composer-installer": "^1.0.0" + "dealerdirect/phpcodesniffer-composer-installer": "^1.0.0", + "sirbrillig/phpcs-variable-analysis": "^2.11", + "phpcsstandards/phpcsextra": "^1.1.0" }, "config": { "allow-plugins": true @@ -36,6 +38,9 @@ "composer install", "bin/install-wp-tests.sh activitypub-test root activitypub-test test-db latest true", "vendor/bin/phpunit" + ], + "lint": [ + "vendor/bin/phpcs" ] } } diff --git a/phpcs.xml b/phpcs.xml index 07a9a39..ad12dbd 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -23,4 +23,50 @@ + + + + + error + + + + + + + + + error + + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + warning + + + **/*.asset.php +