mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-07 14:06:14 +02:00
install PHPStan for static code analysis
This commit is contained in:
parent
cf92446cf3
commit
0965a84929
3 changed files with 70 additions and 1 deletions
|
@ -152,10 +152,12 @@
|
|||
"mikey179/vfsstream": "^1.6",
|
||||
"mockery/mockery": "^1.3",
|
||||
"php-mock/php-mock-phpunit": "^2.10",
|
||||
"phpstan/phpstan": "^1.12",
|
||||
"phpunit/phpunit": "^9"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "phpunit",
|
||||
"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",
|
||||
"cs:install": "@composer install --working-dir=bin/dev/php-cs-fixer",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue