enable cache and colors in phpmd

This commit is contained in:
Art4 2024-12-25 15:59:16 +00:00
parent 9ed137a119
commit 19659296eb
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View file

@ -90,6 +90,7 @@ venv/
#Ignore cache files #Ignore cache files
.php_cs.cache .php_cs.cache
.php-cs-fixer.cache .php-cs-fixer.cache
.phpmd.result-cache.php
#ignore avatar picture cache path #ignore avatar picture cache path
/avatar /avatar

View file

@ -160,7 +160,7 @@
"scripts": { "scripts": {
"test": "phpunit", "test": "phpunit",
"test:unit": "phpunit -c tests/phpunit.xml --testsuite unit", "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", "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", "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", "docker:translate": "docker run --rm -v $PWD:/data -w /data friendicaci/transifex bin/run_xgettext.sh",