mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-11-09 19:20:09 +01:00
Combine phpstan, cs-check, cs-fix into lint-php recipe; fix lint issues + test failures + duplicate detection bug
This commit is contained in:
1 parent
2e75a3b35c
commit
728f05502c
18 files changed
+220
-229
No files matched your search
@@ -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