|
46 | 46 | "ergebnis/composer-normalize": "^2.48", |
47 | 47 | "ergebnis/license": "^2.7", |
48 | 48 | "ergebnis/php-cs-fixer-config": "^6.58", |
| 49 | + "ergebnis/phpstan-rules": "^2.12", |
49 | 50 | "ergebnis/rector-rules": "^1.9", |
50 | 51 | "fakerphp/faker": "^1.24", |
51 | | - "guanguans/php-cs-fixer-custom-fixers": "^1.0", |
| 52 | + "guanguans/php-cs-fixer-custom-fixers": "^1.1", |
52 | 53 | "guanguans/rector-rules": "^1.3", |
53 | 54 | "mockery/mockery": "^1.6", |
54 | 55 | "nette/utils": "^3.2 || ^4.0", |
|
70 | 71 | "shipmonk/dead-code-detector": "^0.14", |
71 | 72 | "shipmonk/name-collision-detector": "^2.1", |
72 | 73 | "shipmonk/phpstan-baseline-per-identifier": "^2.3", |
| 74 | + "shipmonk/phpstan-rules": "^4.3", |
73 | 75 | "spatie/pest-plugin-snapshots": "^1.1 || ^2.0", |
74 | 76 | "spaze/phpstan-disallowed-calls": "^4.7", |
| 77 | + "staabm/annotate-pull-request-from-checkstyle": "^1.8", |
75 | 78 | "staabm/phpstan-todo-by": "^0.3", |
| 79 | + "staabm/side-effects-detector": "^1.0", |
76 | 80 | "symfony/thanks": "^1.3", |
77 | 81 | "symfony/var-dumper": "^5.4 || ^6.0 || ^7.0 || ^8.0", |
78 | 82 | "symplify/phpstan-rules": "^14.9", |
|
195 | 199 | "@pest" |
196 | 200 | ], |
197 | 201 | "class-leak": "@php vendor/bin/class-leak --ansi -vv", |
198 | | - "class-leak:check": "@class-leak check src/ --skip-type=Guanguans\\PHPStanRules\\Contract\\ThrowableContract --skip-path=Support/", |
| 202 | + "class-leak:check": "@class-leak check src/ --skip-type=Guanguans\\PHPStanRules\\Contract\\ThrowableContract --skip-type=Guanguans\\PHPStanRules\\Rule\\ExceptionRule --skip-path=Support/", |
199 | 203 | "composer-bump": [ |
200 | 204 | "@putenv:php", |
201 | 205 | "@composer-config:disable-process-timeout", |
|
315 | 319 | ], |
316 | 320 | "php-cs-fixer:fix": "@php-cs-fixer fix --show-progress=dots --diff", |
317 | 321 | "php-cs-fixer:fix-dry-run": "@php-cs-fixer:fix --dry-run", |
| 322 | + "php-cs-fixer:fix-dry-run-format-annotate-pull-request": "@php vendor/bin/php-cs-fixer --ansi -vv 'fix' '--show-progress=dots' '--diff' '--dry-run' --format=checkstyle | vendor/bin/cs2pr --notices-as-warnings --colorize", |
318 | 323 | "php-cs-fixer:list-files": "@php-cs-fixer list-files", |
319 | 324 | "php-cs-fixer:list-sets": "@php-cs-fixer list-sets --ansi -vv", |
320 | 325 | "php-lint": [ |
|
335 | 340 | ], |
336 | 341 | "phpstan-rules:list-files": "Guanguans\\PHPStanRules\\Support\\ComposerScripts::listFiles", |
337 | 342 | "phpstan:analyse": "@phpstan analyse", |
| 343 | + "phpstan:analyse-error-format-annotate-pull-request": "@php vendor/bin/phpstan --ansi -vv 'analyse' --error-format=checkstyle | vendor/bin/cs2pr --notices-as-warnings --colorize", |
| 344 | + "phpstan:analyse-error-format-github": "@phpstan:analyse --error-format=github", |
| 345 | + "phpstan:analyse-error-format-sarif": [ |
| 346 | + "[ -d .build/phpstan/ ] || mkdir -p .build/phpstan/", |
| 347 | + "@php vendor/bin/phpstan --ansi -vv 'analyse' --error-format=sarif > .build/phpstan/results.sarif" |
| 348 | + ], |
338 | 349 | "phpstan:analyse-generate-baseline": "@phpstan:analyse --generate-baseline --allow-empty-baseline", |
339 | 350 | "phpstan:analyse-split-baseline": [ |
340 | 351 | "@phpstan:analyse --generate-baseline=baselines/loader.neon --allow-empty-baseline", |
|
348 | 359 | "@php vendor/bin/pint --ansi -vv" |
349 | 360 | ], |
350 | 361 | "pint:test": "@pint --test", |
| 362 | + "pint:test-format-annotate-pull-request": [ |
| 363 | + "@putenv:xdebug-off", |
| 364 | + "@php vendor/bin/pint --ansi -vv '--test' --format=checkstyle | vendor/bin/cs2pr --notices-as-warnings --colorize" |
| 365 | + ], |
351 | 366 | "putenv:composer-memory-unlimited": "@putenv COMPOSER_MEMORY_LIMIT=-1", |
352 | 367 | "putenv:php": [ |
353 | 368 | "@putenv PHP74=/opt/homebrew/opt/php@7.4/bin/php", |
|
370 | 385 | "rector:process-clear-cache": "@rector:process --clear-cache", |
371 | 386 | "rector:process-clear-cache-dry-run": "@rector:process-clear-cache --dry-run", |
372 | 387 | "rector:process-dry-run": "@rector:process --dry-run", |
| 388 | + "rector:process-dry-run-output-format-github": "@rector:process-dry-run --output-format=github", |
373 | 389 | "rector:process-only": "@rector:process-clear-cache tests.php --only=Guanguans\\PHPStanRules\\Rector\\Array_\\SortListItemOfSameScalarTypeRector", |
374 | 390 | "rector:process-only-dry-run": "@rector:process-only --dry-run", |
| 391 | + "roave-backward-compatibility-check": [ |
| 392 | + "@putenv:php", |
| 393 | + "$PHP82 vendor/bin/roave-backward-compatibility-check --ansi -vv" |
| 394 | + ], |
| 395 | + "roave-backward-compatibility-check:format-github-actions": "@roave-backward-compatibility-check --format=github-actions", |
375 | 396 | "rule-doc-generator": [ |
376 | 397 | "@putenv:php", |
377 | 398 | "$PHP82 rule-doc-generator --ansi -vv" |
|
0 commit comments