|
67 | 67 | "require-dev": { |
68 | 68 | "bamarni/composer-bin-plugin": "^1.8", |
69 | 69 | "brainmaestro/composer-git-hooks": "^3.0", |
| 70 | + "buggregator/trap": "^1.13", |
| 71 | + "dereuromark/composer-prefer-lowest": "^0.1", |
70 | 72 | "dg/bypass-finals": "^1.9", |
71 | 73 | "driftingly/rector-laravel": "^2.0", |
72 | 74 | "ergebnis/composer-normalize": "^2.47", |
|
212 | 214 | "@md-lint", |
213 | 215 | "@readme-lint", |
214 | 216 | "@yaml-lint", |
| 217 | + "@composer-validate-prefer-lowest", |
215 | 218 | "@phpmnd", |
216 | 219 | "@style-lint", |
217 | 220 | "@sk-check-conflicts", |
|
227 | 230 | ], |
228 | 231 | "checks-parallel": "@composer-parallel composer-validate md-lint lint style-lint test psalm", |
229 | 232 | "class-leak": "@php vendor/bin/class-leak --ansi -v", |
230 | | - "class-leak-check": "@class-leak check config src --skip-suffix=Pipe --skip-path=Support/Traits --skip-path=Channels --skip-type=\\Guanguans\\LaravelExceptionNotify\\Contracts\\Channel --skip-type=\\Guanguans\\LaravelExceptionNotify\\Contracts\\Collector --skip-type=Rector\\Rector\\AbstractRector", |
| 233 | + "class-leak-check": "@class-leak check app/ config/ --skip-suffix=Pipe --skip-path=Support/Traits --skip-path=Channels --skip-type=\\Guanguans\\LaravelExceptionNotify\\Contracts\\Channel --skip-type=\\Guanguans\\LaravelExceptionNotify\\Contracts\\Collector --skip-type=Rector\\Rector\\AbstractRector", |
231 | 234 | "composer-audit": "@composer audit --ansi -v", |
232 | 235 | "composer-bin-all-update": "@composer bin all update --ansi -v", |
233 | 236 | "composer-check-platform-reqs": "@composer check-platform-reqs --lock --ansi -v", |
|
247 | 250 | "composer-updater-dry-run": "@composer-updater --dry-run", |
248 | 251 | "composer-updater-php-cs-fixer-config": "@composer-updater --composer-json-path=vendor-bin/php-cs-fixer-config/composer.json", |
249 | 252 | "composer-validate": "@composer validate --check-lock --strict --ansi -v", |
| 253 | + "composer-validate-prefer-lowest": "@php vendor/dereuromark/composer-prefer-lowest/bin/validate-prefer-lowest.php --majors-only", |
250 | 254 | "composer-vendor-patches": "@php vendor/bin/vendor-patches generate --ansi -v", |
251 | 255 | "doctum": "@php vendor/bin/doctum.php update doctum.php --ansi -v", |
252 | 256 | "env-put-composer-memory-unlimited": "@putenv COMPOSER_MEMORY_LIMIT=-1", |
|
284 | 288 | "lint": [ |
285 | 289 | "@env-put-php", |
286 | 290 | "for DIR in .; do find $DIR -maxdepth 1 -type f -name '*.php' -type f ! -name 'xxx.php' -exec $PHP82 -l {} \\; 2>&1 | (! grep -v '^No syntax errors detected'); done", |
287 | | - "for DIR in app bootstrap config resources tests; do find $DIR -type f -name '*.php' -type f ! -name 'xxx.php' -exec $PHP82 -l {} \\; 2>&1 | (! grep -v '^No syntax errors detected'); done" |
| 291 | + "for DIR in app/ bootstrap/ config/ resources/ tests/; do find $DIR -type f -name '*.php' -type f ! -name 'xxx.php' -exec $PHP82 -l {} \\; 2>&1 | (! grep -v '^No syntax errors detected'); done" |
288 | 292 | ], |
289 | 293 | "mark-finish": "printf '\\n!\\n!\\t\\033[0;32m%s\\033[0m\\n!\\n\\n' \"Finished\"", |
290 | 294 | "mark-separate": "printf '\\n!\\n!\\t\\033[0;33m%s\\033[0m\\n!\\n\\n' \"----------------\"", |
|
294 | 298 | "neon-lint": "@php vendor/bin/neon-lint *.neon", |
295 | 299 | "normalized": "@composer normalize --diff --ansi -v", |
296 | 300 | "normalized-dry-run": "@normalized --dry-run", |
297 | | - "peck": "/opt/homebrew/opt/php@8.3/bin/php vendor/bin/peck check --path=src/ --config=peck.json --ansi -v", |
| 301 | + "peck": "/opt/homebrew/opt/php@8.3/bin/php vendor/bin/peck check --path=app/ --config=peck.json --ansi -v", |
298 | 302 | "peck-init": "@peck --init", |
299 | 303 | "pest": "@php vendor/bin/pest --colors=always --min=80 --coverage", |
300 | 304 | "pest-bail": "@pest --bail", |
|
310 | 314 | "pest-type-coverage": "@pest --type-coverage", |
311 | 315 | "pest-update-snapshots": "@pest -d --update-snapshots", |
312 | 316 | "phparkitect": "@php vendor/bin/phparkitect check --ansi -v", |
313 | | - "phploc": "@php vendor/bin/phploc --suffix=php src/", |
314 | | - "phpmd": "@php vendor/bin/phpmd src/ ansi cleancode,codesize,controversial,design,naming,unusedcode --suffixes=php", |
315 | | - "phpmetrics": "@php vendor/bin/phpmetrics --report-html=.build/phpmetrics/ src/", |
316 | | - "phpmnd": "@php vendor/bin/phpmnd src --exclude-path=Support/helpers.php --ignore-numbers=2,-1 --hint --progress --ansi -v", |
| 317 | + "phploc": "@php vendor/bin/phploc --suffix=php app/", |
| 318 | + "phpmd": "@php vendor/bin/phpmd app/ ansi cleancode,codesize,controversial,design,naming,unusedcode --suffixes=php", |
| 319 | + "phpmetrics": "@php vendor/bin/phpmetrics --report-html=.build/phpmetrics/ app/", |
| 320 | + "phpmnd": "@php vendor/bin/phpmnd app/ --exclude-path=Support/helpers.php --ignore-numbers=2,-1 --hint --progress --ansi -v", |
317 | 321 | "phpstan": "@php vendor/bin/phpstan analyse --ansi -v", |
318 | 322 | "phpstan-baseline": "@phpstan --generate-baseline --allow-empty-baseline", |
319 | 323 | "phpstan-split-baseline": [ |
|
0 commit comments