|
51 | 51 | "ergebnis/composer-normalize": "^2.48", |
52 | 52 | "ergebnis/license": "^2.7", |
53 | 53 | "ergebnis/php-cs-fixer-config": "^6.57", |
54 | | - "ergebnis/rector-rules": "^1.7", |
| 54 | + "ergebnis/rector-rules": "^1.8", |
55 | 55 | "fakerphp/faker": "^1.24", |
56 | | - "guanguans/monorepo-builder-worker": "^2.1", |
| 56 | + "guanguans/php-cs-fixer-custom-fixers": "^1.0", |
57 | 57 | "illuminate/support": "^10.49 || ^11.0 || ^12.0", |
58 | 58 | "mockery/mockery": "^1.6", |
59 | 59 | "nette/utils": "^4.0", |
|
76 | 76 | "shipmonk/composer-dependency-analyser": "^1.8", |
77 | 77 | "shipmonk/dead-code-detector": "^0.14", |
78 | 78 | "shipmonk/name-collision-detector": "^2.1", |
79 | | - "shipmonk/phpstan-baseline-per-identifier": "^2.2", |
| 79 | + "shipmonk/phpstan-baseline-per-identifier": "^2.3", |
80 | 80 | "spatie/pest-plugin-snapshots": "^2.2", |
81 | 81 | "spaze/phpstan-disallowed-calls": "^4.7", |
82 | 82 | "staabm/phpstan-todo-by": "^0.3", |
|
85 | 85 | "symplify/phpstan-rules": "^14.9", |
86 | 86 | "tomasvotruba/class-leak": "^2.1", |
87 | 87 | "tomasvotruba/cognitive-complexity": "^1.0", |
88 | | - "tomasvotruba/type-coverage": "^2.0", |
| 88 | + "tomasvotruba/type-coverage": "^2.1", |
89 | 89 | "yamadashy/phpstan-friendly-formatter": "^1.3" |
90 | 90 | }, |
91 | 91 | "conflict": { |
92 | | - "pestphp/pest": "^4.0", |
93 | | - "symplify/monorepo-builder": "^12.0" |
| 92 | + "pestphp/pest": "^4.0" |
94 | 93 | }, |
95 | 94 | "suggest": { |
96 | 95 | "symfony/var-dumper": "Required to use the the trait [WithDumpable]." |
|
162 | 161 | "@cghooks:upsert", |
163 | 162 | "@composer:normalize" |
164 | 163 | ], |
165 | | - "actionlint": [ |
166 | | - "if ! command -v actionlint >/dev/null 2>&1; then echo 'actionlint not found, installing...'; brew install actionlint; fi", |
167 | | - "actionlint -ignore=SC2035 -ignore=SC2086 -color -oneline -verbose" |
168 | | - ], |
| 164 | + "actionlint": "actionlint -ignore=SC2035 -ignore=SC2086 -color -oneline -verbose", |
169 | 165 | "blade-formatter": "blade-formatter resources/views/*.blade.php resources/views/**/*.blade.php --ignore-path= --php-version=8.1 --progress", |
170 | 166 | "blade-formatter:check-formatted": "@blade-formatter --check-formatted", |
171 | 167 | "blade-formatter:write": "@blade-formatter --write", |
172 | 168 | "cghooks": "@php vendor/bin/cghooks --ansi -vv", |
173 | | - "cghooks:remove": [ |
174 | | - "@php -r \"file_exists('.git/hooks/post-merge') and rename('.git/hooks/post-merge', '.git/hooks/post-merge.sample');\"", |
175 | | - "@php -r \"file_exists('.git/hooks/pre-commit') and rename('.git/hooks/pre-commit', '.git/hooks/pre-commit.sample');\"" |
176 | | - ], |
177 | | - "cghooks:try": [ |
178 | | - "@putenv:php", |
179 | | - "[ ! -f \"vendor/bin/cghooks\" ] && exit 0 || $PHP81 vendor/bin/cghooks --ansi -vv" |
180 | | - ], |
181 | 169 | "cghooks:upsert": [ |
182 | 170 | "@cghooks add --ignore-lock", |
183 | 171 | "@cghooks update" |
|
189 | 177 | "checks:optional": [ |
190 | 178 | "@putenv:xdebug-off", |
191 | 179 | "@class-leak:check", |
| 180 | + "@composer-dependency-analyser", |
| 181 | + "@composer:normalize-dry-run", |
192 | 182 | "@detect-collisions", |
| 183 | + "@jack:breakpoint", |
193 | 184 | "@jack:open-versions-dry-run", |
194 | 185 | "@jack:raise-to-installed-dry-run", |
195 | 186 | "@jsonlint", |
196 | 187 | "@phpmnd", |
| 188 | + "@phpstan:analyse", |
| 189 | + "@rector:process-dry-run", |
197 | 190 | "@sk:check-commented-code", |
198 | 191 | "@sk:check-conflicts", |
199 | 192 | "@sk:find-multi-classes", |
200 | 193 | "@sk:namespace-to-psr-4", |
201 | 194 | "@sk:privatize-constants", |
202 | 195 | "@sk:spot-lazy-traits", |
| 196 | + "@soar-php:check-binary", |
| 197 | + "@soar-php:dump-config", |
| 198 | + "@soar-php:example-run", |
203 | 199 | "@todo-lint", |
204 | 200 | "@yaml-lint", |
205 | 201 | "@actionlint", |
|
211 | 207 | ], |
212 | 208 | "checks:required": [ |
213 | 209 | "@putenv:xdebug-off", |
214 | | - "@composer:normalize-dry-run", |
215 | | - "@composer-dependency-analyser", |
216 | | - "@php-cs-fixer:fix-dry-run-stop-on-violation", |
217 | | - "@soar-php:check-binary", |
218 | | - "@soar-php:dump-config", |
219 | | - "@soar-php:example-run", |
220 | | - "@pest:bail", |
221 | | - "@rector:process-dry-run", |
222 | | - "@phpstan:analyse" |
| 210 | + "@php-cs-fixer:fix-dry-run", |
| 211 | + "@pest" |
223 | 212 | ], |
224 | 213 | "class-leak": "@php vendor/bin/class-leak --ansi -vv", |
225 | | - "class-leak:check": "@class-leak check examples/ src/ --skip-type=\\Contracts\\Channel --skip-suffix=Channel --skip-path=Support/Rectors/", |
| 214 | + "class-leak:check": "@class-leak check examples/ src/ --skip-path=Support/Rectors/", |
226 | 215 | "composer-bump": [ |
227 | 216 | "@putenv:php", |
228 | 217 | "@composer-config:disable-process-timeout", |
|
263 | 252 | "$PHP82 vendor/bin/grumphp run --ansi -vv" |
264 | 253 | ], |
265 | 254 | "jack": "@php vendor/bin/jack --ansi -vv", |
266 | | - "jack:breakpoint": "@jack breakpoint --limit=5", |
| 255 | + "jack:breakpoint": "@jack breakpoint --limit=7", |
267 | 256 | "jack:breakpoint-dev": "@jack:breakpoint --dev", |
268 | 257 | "jack:open-versions": "@jack open-versions --limit=99", |
269 | 258 | "jack:open-versions-dev": "@jack:open-versions --dev", |
|
287 | 276 | "mago:lint-dry-run": "@mago:lint --dry-run", |
288 | 277 | "mago:lint-list-rules": "@mago lint --list-rules", |
289 | 278 | "mago:lint-semantics-only": "@mago lint --semantics-only", |
290 | | - "monorepo-builder": "@php vendor/bin/monorepo-builder --ansi -vv", |
| 279 | + "monorepo-builder": [ |
| 280 | + "@putenv:php", |
| 281 | + "$PHP82 vendor/bin/monorepo-builder --ansi -vv" |
| 282 | + ], |
291 | 283 | "monorepo-builder:release": "@monorepo-builder release", |
292 | 284 | "monorepo-builder:release-1.0.0-BETA1": "@monorepo-builder:release 1.0.0-BETA1", |
293 | 285 | "monorepo-builder:release-1.0.0-BETA1-dry-run": "@monorepo-builder:release-1.0.0-BETA1 --dry-run", |
|
309 | 301 | "@php vendor/bin/pest --colors=always --min=80 --coverage --profile", |
310 | 302 | "@putenv:xdebug-off" |
311 | 303 | ], |
312 | | - "pest:bail": "@pest --bail", |
313 | | - "pest:compact": "@pest --compact", |
314 | 304 | "pest:coverage": "@pest --coverage-html=.build/phpunit/ --coverage-clover=.build/phpunit/clover.xml", |
315 | | - "pest:disable-coverage-ignore": "@pest --disable-coverage-ignore", |
316 | 305 | "pest:highest": [ |
317 | 306 | "@putenv:php", |
318 | 307 | "@putenv:xdebug-on", |
|
326 | 315 | "pest:type-coverage": "@pest --type-coverage", |
327 | 316 | "pest:update-snapshots": "@pest --update-snapshots", |
328 | 317 | "php-cs-fixer": "@php vendor/bin/php-cs-fixer --ansi -vv", |
329 | | - "php-cs-fixer:check": "@php-cs-fixer check --show-progress=dots --diff", |
330 | | - "php-cs-fixer:describe": "@php-cs-fixer describe", |
| 318 | + "php-cs-fixer:custom": "@php-cs-fixer --config=.php-cs-fixer-custom.php", |
| 319 | + "php-cs-fixer:custom-check": "@php-cs-fixer:custom check --show-progress=dots --diff", |
| 320 | + "php-cs-fixer:custom-fix": "@php-cs-fixer:custom fix --show-progress=dots --diff", |
| 321 | + "php-cs-fixer:custom-fix-dry-run": "@php-cs-fixer:custom-fix --dry-run", |
| 322 | + "php-cs-fixer:custom-list-files": "@php-cs-fixer:custom list-files", |
331 | 323 | "php-cs-fixer:fix": "@php-cs-fixer fix --show-progress=dots --diff", |
332 | 324 | "php-cs-fixer:fix-dry-run": "@php-cs-fixer:fix --dry-run", |
333 | | - "php-cs-fixer:fix-dry-run-stop-on-violation": "@php-cs-fixer:fix-dry-run --stop-on-violation", |
334 | 325 | "php-cs-fixer:list-files": "@php-cs-fixer list-files", |
335 | 326 | "php-cs-fixer:list-sets": "@php-cs-fixer list-sets --ansi -vv", |
336 | 327 | "php-lint": [ |
|
339 | 330 | "for DIR in src/ tests/; do find $DIR -type f -name '*.php' -type f ! -name 'xxx.php' -exec $PHP81 -l {} \\; 2>&1 | (! grep -v '^No syntax errors detected'); done" |
340 | 331 | ], |
341 | 332 | "phpbench": "@php vendor/bin/phpbench run --report=aggregate --ansi -vv", |
342 | | - "phpcs": "@php vendor/bin/phpcs examples/ src/ --extensions=php --ignore=*/vendor/* --parallel=8 --cache --colors -n -p -s -v", |
343 | | - "phpcs:compatibility": "@phpcs --standard=PHPCompatibility --exclude=PHPCompatibility.FunctionDeclarations.NewClosure --runtime-set testVersion 8.5-", |
344 | | - "phpcs:help": "@phpcs --help", |
345 | | - "phpcs:i": "@phpcs -i", |
346 | 333 | "phpmnd": "@php vendor/bin/phpmnd src/ --exclude-path=Support/helpers.phpp --ignore-numbers=2,-1 --hint --progress --ansi -vv", |
347 | 334 | "phpstan": "@php vendor/bin/phpstan --ansi -vv", |
348 | 335 | "phpstan:analyse": "@phpstan analyse", |
349 | | - "phpstan:analyse-fix": "@phpstan:analyse --fix", |
350 | 336 | "phpstan:analyse-generate-baseline": "@phpstan:analyse --generate-baseline --allow-empty-baseline", |
351 | 337 | "phpstan:analyse-split-baseline": [ |
352 | 338 | "@phpstan:analyse --generate-baseline=baselines/loader.neon --allow-empty-baseline", |
|
359 | 345 | "@putenv:xdebug-off", |
360 | 346 | "@php vendor/bin/pint --ansi -vv" |
361 | 347 | ], |
362 | | - "pint:bail": "@pint --bail", |
363 | | - "pint:dirty": "@pint --dirty", |
364 | | - "pint:dirty-bail": "@pint:dirty --bail", |
365 | | - "pint:dirty-test": "@pint:dirty --test", |
366 | 348 | "pint:test": "@pint --test", |
367 | 349 | "putenv:composer-memory-unlimited": "@putenv COMPOSER_MEMORY_LIMIT=-1", |
368 | 350 | "putenv:php": [ |
|
379 | 361 | "@putenv XDEBUG_MODE=coverage,debug", |
380 | 362 | "@putenv XDEBUG_SESSION=1" |
381 | 363 | ], |
382 | | - "readme-lint": "@php readme-lint --ansi -vv", |
383 | 364 | "rector": "@php vendor/bin/rector", |
384 | 365 | "rector:custom-rule": "@rector custom-rule", |
385 | 366 | "rector:list-rules": "@rector list-rules", |
|
391 | 372 | "rector:process-only-dry-run": "@rector:process-only --dry-run", |
392 | 373 | "rector:process-options": "@rector:process-clear-cache --config=rector-options.php", |
393 | 374 | "rector:process-options-dry-run": "@rector:process-options --dry-run", |
394 | | - "rector:setup-ci": "@rector setup-ci", |
395 | 375 | "rule-doc-generator": [ |
396 | 376 | "@putenv:php", |
397 | 377 | "$PHP82 rule-doc-generator --ansi -vv" |
|
457 | 437 | ], |
458 | 438 | "todo-lint": "! git --no-pager grep --extended-regexp --ignore-case 'todo|fixme' -- '*.php' ':!*.blade.php' ':(exclude)resources/'", |
459 | 439 | "trufflehog": "trufflehog git https://github.com/guanguans/soar-php --only-verified", |
460 | | - "user:composer": [ |
461 | | - "@putenv:composer-memory-unlimited", |
462 | | - "@putenv:xdebug-off", |
463 | | - "@composer --ansi -vv" |
464 | | - ], |
465 | | - "user:php": [ |
466 | | - "@putenv:xdebug-off", |
467 | | - "@php -d xdebug.mode=off" |
468 | | - ], |
469 | 440 | "var-dump-server:cli": "@php vendor/bin/var-dump-server --ansi -vv", |
470 | 441 | "var-dump-server:html": [ |
471 | 442 | "@composer-config:disable-process-timeout", |
|
475 | 446 | "@php vendor/bin/var-dump-server --ansi -v --format=html > .build/dump.html" |
476 | 447 | ], |
477 | 448 | "vendor-patches": "@php vendor/bin/vendor-patches generate --ansi -vv", |
478 | | - "vhs": [ |
479 | | - "@cghooks:remove", |
480 | | - "vhs < soar-php.tape", |
481 | | - "@cghooks:upsert" |
482 | | - ], |
| 449 | + "vhs": "vhs < soar-php.tape", |
483 | 450 | "yaml-lint": "@php vendor/bin/yaml-lint .github/ examples/ --ansi -vv", |
484 | 451 | "zhlint": [ |
485 | 452 | "if ! command -v zhlint >/dev/null 2>&1; then echo 'zhlint not found, installing...'; npm install -g zhlint; fi", |
486 | 453 | "@zhlint:prototype" |
487 | 454 | ], |
488 | 455 | "zhlint:fix": "@zhlint:prototype --fix", |
489 | 456 | "zhlint:prototype": "zhlint {,docs/,docs/**/}*-zh_CN.md", |
490 | | - "zizmor": [ |
491 | | - "if ! command -v zizmor >/dev/null 2>&1; then echo 'zizmor not found, installing...'; brew install zizmor; fi", |
492 | | - "zizmor .github/ --verbose" |
493 | | - ] |
| 457 | + "zizmor": "zizmor .github/ --verbose" |
494 | 458 | }, |
495 | 459 | "scripts-aliases": { |
496 | 460 | "pest": [ |
|
0 commit comments