]> git.mxchange.org Git - friendica.git/commitdiff
enable cache and colors in phpmd
authorArt4 <art4@wlabs.de>
Wed, 25 Dec 2024 15:59:16 +0000 (15:59 +0000)
committerArt4 <art4@wlabs.de>
Wed, 25 Dec 2024 15:59:16 +0000 (15:59 +0000)
.gitignore
composer.json

index 3a673832bd1c36bffef2a6db8031540de3dda32e..90dd712de54ded4a7e6a1e3cae718de58b1e4f60 100644 (file)
@@ -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
index 724592df45d9a1b3e6571ee188083f82eca9b928..c94a3e8aefbc71d5d3b217ed86bb6f2e9663ca38 100644 (file)
        "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",