From: Art4 Date: Wed, 25 Dec 2024 15:25:34 +0000 (+0000) Subject: Add script to run phpmd with composer X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=36dbae7642c56f061c1ca7c20dc55646ffea5f63;p=friendica.git Add script to run phpmd with composer --- diff --git a/.phpmd-ruleset.xml b/.phpmd-ruleset.xml new file mode 100644 index 0000000000..190f76e4f9 --- /dev/null +++ b/.phpmd-ruleset.xml @@ -0,0 +1,26 @@ + + + + PHPMD ruleset for friendica code. + + + + 3 + + + + + + 3 + + + + + + diff --git a/.phpmd.xml b/.phpmd.xml deleted file mode 100644 index c54077ad11..0000000000 --- a/.phpmd.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - PHPMD ruleset for friendica code. - - - - 3 - - - - - - 3 - - - - - - diff --git a/composer.json b/composer.json index 5c673dbdfa..724592df45 100644 --- a/composer.json +++ b/composer.json @@ -160,6 +160,7 @@ "scripts": { "test": "phpunit", "test:unit": "phpunit -c tests/phpunit.xml --testsuite unit", + "phpmd": "phpmd src/ text .phpmd-ruleset.xml", "phpstan": "phpstan analyze --memory-limit 1024M --configuration .phpstan.neon", "lint": "find . -name \\*.php -not -path './vendor/*' -not -path './view/asset/*' -print0 | xargs -0 -n1 php -l", "docker:translate": "docker run --rm -v $PWD:/data -w /data friendicaci/transifex bin/run_xgettext.sh",