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",