justfile: standardise test recipes to lint-php/lint-css/lint-js/test + add fix recipe

- Removed ambiguous aliases: phpstan, cs-check (both pointed to lint-php which
  also ran php-cs-fixer, making the names misleading)
- Removed syntax (php -l) — redundant, phpstan already catches parse errors
- Split lint-biome into lint-css and lint-js with correct paths
- Added lint meta-recipe that runs all three linters
- Added fix recipe: biome check --write (CSS/JS format+lint) + php-cs-fixer fix (PHP)
- Updated build-lint to delegate to lint-css + lint-js
This commit is contained in:
Pontoporeia
2026-07-05 10:50:42 +02:00
parent 786eef6df5
commit 34b5d3e585
7 changed files with 48 additions and 28 deletions
+23 -18
View File
@@ -76,7 +76,8 @@ build-install:
[group('build')]
build-lint:
@npx biome lint app/public/assets/css/ app/public/assets/js/app/ scripts/
@just lint-css
@just lint-js
[group('build')]
build-check:
@@ -443,31 +444,35 @@ test-coverage:
# Generate HTML coverage report in coverage/
@vendor/bin/phpunit --coverage-html coverage/ tests/phpunit/
[group('test')]
lint-biome:
@biome lint app/public/assets/js/
[group('test')]
lint-php:
# Static analysis + coding standards check
# Static analysis (phpstan) + coding standards (php-cs-fixer)
@vendor/bin/phpstan analyse --memory-limit=512M
@vendor/bin/php-cs-fixer check --no-interaction
[group('test')]
cs-fix:
lint-css:
# Lint CSS with biome
@npx biome lint app/public/assets/css/
[group('test')]
lint-js:
# Lint JS/build scripts with biome
@npx biome lint app/public/assets/js/app/ scripts/
[group('test')]
lint:
# Run all linters
@just lint-php
@just lint-css
@just lint-js
[group('test')]
fix:
# Auto-fix: biome (JS/CSS formatting + lint) + php-cs-fixer (PHP coding standards)
@npx biome check --write app/public/assets/css/ app/public/assets/js/app/ scripts/
@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
@echo '✅ Syntax OK'
# ============================================================================
# Database
# ============================================================================