diff --git a/Build/phpmd.xml b/Build/phpmd.xml new file mode 100644 index 0000000..ba65331 --- /dev/null +++ b/Build/phpmd.xml @@ -0,0 +1,47 @@ + + + + PHPMD rules for Tea + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/composer.json b/composer.json index d28cc2b..3427231 100644 --- a/composer.json +++ b/composer.json @@ -52,7 +52,8 @@ "helmich/typo3-typoscript-lint": "^3.1.1", "icanhazstring/composer-unused": "^0.8.11", "php-coveralls/php-coveralls": "^2.7.0", - "php-parallel-lint/php-parallel-lint": "^1.4", + "php-parallel-lint/php-parallel-lint": "^1.4", + "phpmd/phpmd": "^2.15", "phpstan/extension-installer": "^1.4.1", "phpstan/phpstan": "^1.11.8", "phpstan/phpstan-phpunit": "^1.4.0", @@ -148,6 +149,7 @@ "ci:php:lint": "parallel-lint .*.php *.php Classes Configuration Tests", "ci:php:sniff": "phpcs Classes Configuration Tests", "ci:php:stan": "phpstan --no-progress", + "ci:php:mess": "phpmd Classes,Configuration,Tests text Build/phpmd.xml", "ci:static": [ "@ci:composer:normalize", "@ci:json:lint",