mirror of
https://github.com/snipe/snipe-it.git
synced 2026-08-18 03:06:23 +00:00
Added phpstan ruleset and baseline, added phpmd back
This commit is contained in:
@ -85,6 +85,7 @@
|
||||
"mockery/mockery": "^1.4",
|
||||
"nunomaduro/phpinsights": "^2.11",
|
||||
"php-mock/php-mock-phpunit": "^2.10",
|
||||
"phpmd/phpmd": "^2.15",
|
||||
"phpunit/phpunit": "^11.0",
|
||||
"squizlabs/php_codesniffer": "^3.5"
|
||||
},
|
||||
@ -125,7 +126,15 @@
|
||||
"php artisan key:generate"
|
||||
],
|
||||
"coverage:herd:clover": "herd coverage vendor/bin/phpunit --coverage-clover tests/coverage/clover.xml",
|
||||
"coverage:herd:html": "herd coverage vendor/bin/phpunit --coverage-html tests/coverage/html"
|
||||
"coverage:herd:html": "herd coverage vendor/bin/phpunit --coverage-html tests/coverage/html",
|
||||
"analyse": [
|
||||
"@analyse:phpstan",
|
||||
"@analyse:phpmd"
|
||||
],
|
||||
"analyse:phpstan": "phpstan analyse --memory-limit=2G",
|
||||
"analyse:phpstan:baseline": "phpstan analyse --memory-limit=2G --generate-baseline=phpstan-baseline.neon",
|
||||
"analyse:phpmd": "phpmd app text phpmd-ruleset.xml --baseline-file phpmd.baseline.xml",
|
||||
"analyse:phpmd:baseline": "phpmd app xml phpmd-ruleset.xml --generate-baseline"
|
||||
},
|
||||
"config": {
|
||||
"preferred-install": "dist",
|
||||
|
||||
Reference in New Issue
Block a user