From 19659296eb9fabd94d8687ab0739f1590f90cb10 Mon Sep 17 00:00:00 2001 From: Art4 Date: Wed, 25 Dec 2024 15:59:16 +0000 Subject: [PATCH] enable cache and colors in phpmd --- .gitignore | 1 + composer.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 3a673832bd..90dd712de5 100644 --- a/.gitignore +++ b/.gitignore @@ -90,6 +90,7 @@ venv/ #Ignore cache files .php_cs.cache .php-cs-fixer.cache +.phpmd.result-cache.php #ignore avatar picture cache path /avatar diff --git a/composer.json b/composer.json index 724592df45..c94a3e8aef 100644 --- a/composer.json +++ b/composer.json @@ -160,7 +160,7 @@ "scripts": { "test": "phpunit", "test:unit": "phpunit -c tests/phpunit.xml --testsuite unit", - "phpmd": "phpmd src/ text .phpmd-ruleset.xml", + "phpmd": "phpmd src/ text .phpmd-ruleset.xml --color --cache", "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",