mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 16:19:19 +02:00
Combine phpstan, cs-check, cs-fix into lint-php recipe; fix lint issues + test failures + duplicate detection bug
This commit is contained in:
12
justfile
12
justfile
@@ -349,17 +349,21 @@ lint-biome:
|
||||
@biome lint app/public/assets/js/
|
||||
|
||||
[group('test')]
|
||||
phpstan:
|
||||
lint-php:
|
||||
# Static analysis + coding standards check
|
||||
@vendor/bin/phpstan analyse --memory-limit=512M
|
||||
|
||||
[group('test')]
|
||||
cs-check:
|
||||
@vendor/bin/php-cs-fixer check --no-interaction
|
||||
|
||||
[group('test')]
|
||||
cs-fix:
|
||||
@vendor/bin/php-cs-fixer fix --no-interaction
|
||||
|
||||
[group('test')]
|
||||
phpstan: lint-php
|
||||
|
||||
[group('test')]
|
||||
cs-check: lint-php
|
||||
|
||||
[group('test')]
|
||||
syntax:
|
||||
@find app/ -name '*.php' -exec php -l {} \; 2>/dev/null | grep -v 'No syntax errors' || true
|
||||
|
||||
Reference in New Issue
Block a user