|
162 | 162 | "@composer:normalize" |
163 | 163 | ], |
164 | 164 | "actionlint": "actionlint -ignore=SC2035 -ignore=SC2086 -color -oneline -verbose", |
| 165 | + "argtyper": "@php vendor/bin/argtyper --ansi -vv", |
| 166 | + "argtyper:add-types": "@argtyper add-types .", |
165 | 167 | "blade-formatter": "blade-formatter resources/views/*.blade.php resources/views/**/*.blade.php --ignore-path= --php-version=8.1 --progress", |
166 | 168 | "blade-formatter:check-formatted": "@blade-formatter --check-formatted", |
167 | 169 | "blade-formatter:write": "@blade-formatter --write", |
|
176 | 178 | ], |
177 | 179 | "checks:optional": [ |
178 | 180 | "@putenv:xdebug-off", |
| 181 | + "@composer:unlink", |
179 | 182 | "@class-leak:check", |
180 | 183 | "@composer-dependency-analyser", |
181 | 184 | "@composer:normalize-dry-run", |
|
205 | 208 | "@php-cs-fixer:custom-fix-dry-run", |
206 | 209 | "@php-cs-fixer:custom-ln-config", |
207 | 210 | "@rule-doc-generator:generate", |
| 211 | + "@typos", |
208 | 212 | "@zhlint" |
209 | 213 | ], |
210 | 214 | "checks:required": [ |
|
242 | 246 | "composer:diff": "@composer diff --with-platform --ansi -vv", |
243 | 247 | "composer:normalize": "@composer normalize --diff --ansi -vv", |
244 | 248 | "composer:normalize-dry-run": "@composer:normalize --dry-run", |
| 249 | + "composer:unlink": "@php -r \"@unlink('vendor/bin/composer');\"", |
245 | 250 | "composer:validate": "@composer validate --check-lock --strict --ansi -vv", |
246 | 251 | "detect-collisions": "@php vendor/bin/detect-collisions examples/ src/", |
247 | 252 | "facade:lint": "@facade:update --lint", |
|
307 | 312 | "@putenv:xdebug-off" |
308 | 313 | ], |
309 | 314 | "pest:coverage": "@pest --coverage-html=.build/phpunit/ --coverage-clover=.build/phpunit/clover.xml", |
| 315 | + "pest:generate-baseline": "@pest --generate-baseline=phpunit-baseline.xml", |
310 | 316 | "pest:highest": [ |
311 | 317 | "@putenv:php", |
312 | 318 | "@putenv:xdebug-on", |
|
333 | 339 | ], |
334 | 340 | "php-cs-fixer:fix": "@php-cs-fixer fix --show-progress=dots --diff", |
335 | 341 | "php-cs-fixer:fix-dry-run": "@php-cs-fixer:fix --dry-run", |
| 342 | + "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", |
336 | 343 | "php-cs-fixer:list-files": "@php-cs-fixer list-files", |
337 | 344 | "php-cs-fixer:list-sets": "@php-cs-fixer list-sets --ansi -vv", |
338 | 345 | "php-lint": [ |
|
344 | 351 | "phpmnd": "@php vendor/bin/phpmnd src/ --exclude-path=Support/helpers.phpp --ignore-numbers=2,-1 --hint --progress --ansi -vv", |
345 | 352 | "phpstan": "@php vendor/bin/phpstan --ansi -vv", |
346 | 353 | "phpstan:analyse": "@phpstan analyse", |
| 354 | + "phpstan:analyse-error-format-annotate-pull-request": "@php vendor/bin/phpstan --ansi -vv 'analyse' --error-format=checkstyle | vendor/bin/cs2pr --notices-as-warnings --colorize", |
| 355 | + "phpstan:analyse-error-format-checkstyle": "@phpstan:analyse --error-format=checkstyle", |
| 356 | + "phpstan:analyse-error-format-github": "@phpstan:analyse --error-format=github", |
| 357 | + "phpstan:analyse-error-format-llm": "@phpstan:analyse --error-format=llm", |
| 358 | + "phpstan:analyse-error-format-sarif": [ |
| 359 | + "[ -d .build/phpstan/ ] || mkdir -p .build/phpstan/", |
| 360 | + "@php vendor/bin/phpstan --ansi -vv 'analyse' --error-format=sarif > .build/phpstan/results.sarif" |
| 361 | + ], |
347 | 362 | "phpstan:analyse-generate-baseline": "@phpstan:analyse --generate-baseline --allow-empty-baseline", |
348 | 363 | "phpstan:analyse-split-baseline": [ |
349 | 364 | "@phpstan:analyse --generate-baseline=baselines/loader.neon --allow-empty-baseline", |
|
357 | 372 | "@php vendor/bin/pint --ansi -vv" |
358 | 373 | ], |
359 | 374 | "pint:test": "@pint --test", |
| 375 | + "pint:test-format-annotate-pull-request": [ |
| 376 | + "@putenv:xdebug-off", |
| 377 | + "@php vendor/bin/pint --ansi -vv '--test' --format=checkstyle | vendor/bin/cs2pr --notices-as-warnings --colorize" |
| 378 | + ], |
360 | 379 | "putenv:composer-memory-unlimited": "@putenv COMPOSER_MEMORY_LIMIT=-1", |
361 | 380 | "putenv:php": [ |
362 | 381 | "@putenv PHP74=/opt/homebrew/opt/php@7.4/bin/php", |
|
375 | 394 | "rector": "@php vendor/bin/rector", |
376 | 395 | "rector:custom-rule": "@rector custom-rule", |
377 | 396 | "rector:list-rules": "@rector list-rules", |
378 | | - "rector:process": "@rector process", |
| 397 | + "rector:process": "@rector process --ansi", |
379 | 398 | "rector:process-clear-cache": "@rector:process --clear-cache", |
380 | 399 | "rector:process-clear-cache-dry-run": "@rector:process-clear-cache --dry-run", |
381 | 400 | "rector:process-dry-run": "@rector:process --dry-run", |
| 401 | + "rector:process-dry-run-output-format-github": "@rector:process-dry-run --output-format=github", |
382 | 402 | "rector:process-only": "@rector:process-clear-cache --only=Guanguans\\SoarPHP\\Support\\Rectors\\AddHasOptionsDocCommentRector", |
383 | 403 | "rector:process-only-dry-run": "@rector:process-only --dry-run", |
384 | 404 | "rector:process-options": "@rector:process-clear-cache --config=rector-options.php", |
385 | 405 | "rector:process-options-dry-run": "@rector:process-options --dry-run", |
| 406 | + "roave-backward-compatibility-check": [ |
| 407 | + "@putenv:php", |
| 408 | + "$PHP82 vendor/bin/roave-backward-compatibility-check --install-development-dependencies --ansi -vv" |
| 409 | + ], |
| 410 | + "roave-backward-compatibility-check:format-github-actions": "@roave-backward-compatibility-check --format=github-actions", |
386 | 411 | "rule-doc-generator": [ |
387 | 412 | "@putenv:php", |
388 | 413 | "$PHP82 rule-doc-generator --ansi -vv" |
|
398 | 423 | "sk:finalize-classes-dry-run": "@sk:finalize-classes --dry-run", |
399 | 424 | "sk:find-multi-classes": "@sk find-multi-classes examples/ src/", |
400 | 425 | "sk:generate-symfony-config-builders": "@sk generate-symfony-config-builders --help", |
401 | | - "sk:namespace-to-psr-4": "@sk namespace-to-psr-4 src/ --namespace-root=Guanguans\\SoarPHP\\", |
| 426 | + "sk:namespace-to-psr-4": [ |
| 427 | + "@sk:namespace-to-psr-4-src", |
| 428 | + "@sk:namespace-to-psr-4-tests" |
| 429 | + ], |
| 430 | + "sk:namespace-to-psr-4-src": "@sk namespace-to-psr-4 src/ --namespace-root=Guanguans\\SoarPHP\\", |
| 431 | + "sk:namespace-to-psr-4-tests": "@sk namespace-to-psr-4 tests/ --namespace-root=Guanguans\\SoarPHPTests\\", |
402 | 432 | "sk:pretty-json": "@sk pretty-json .lintmdrc", |
403 | 433 | "sk:pretty-json-dry-run": "@sk:pretty-json --dry-run", |
404 | 434 | "sk:privatize-constants": "@sk privatize-constants examples/ src/", |
|
448 | 478 | ], |
449 | 479 | "todo-lint": "! git --no-pager grep --extended-regexp --ignore-case 'todo|fixme' -- '*.php' ':!*.blade.php' ':(exclude)resources/'", |
450 | 480 | "trufflehog": "trufflehog git https://github.com/guanguans/soar-php --only-verified", |
| 481 | + "typos": "typos --color=always --sort --verbose", |
| 482 | + "typos:write-changes": "@typos --write-changes", |
451 | 483 | "var-dump-server:cli": "@php vendor/bin/var-dump-server --ansi -vv", |
452 | 484 | "var-dump-server:html": [ |
453 | 485 | "@composer-config:disable-process-timeout", |
|
0 commit comments