Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,7 @@ bin/biome
###> misc ###
.opencode/
###< misc ###

###> vincentlanglet/twig-cs-fixer ###
/.twig-cs-fixer.cache
###< vincentlanglet/twig-cs-fixer ###
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ fix-php: ## Fix PHP files with php-cs-fixer (ignore PHP version warning)
fix-js-css: ## Format JS/CSS files with Biome
@bin/biome check . --write

fix-twig-cs-fixer: ## Fix Twig files with Twig CS Fixer
@vendor/bin/twig-cs-fixer lint --fix ./templates

lint-php: ## Lint PHP files with php-cs-fixer (report only)
lint-php: PHP_CS_FIXER_ARGS=--dry-run
lint-php: fix-php
Expand All @@ -114,14 +117,17 @@ lint-container: ## Lint the Symfony DI container
lint-twig: ## Lint Twig files
@bin/console lint:twig templates/

lint-twig-cs-fixer: ## Lint Twig files with Twig CS Fixer
@vendor/bin/twig-cs-fixer lint ./templates

lint-doctrine: ## Validate Doctrine schema
@bin/console doctrine:schema:validate

fix: ## Run all fixers
fix: fix-php fix-js-css
fix: fix-php fix-js-css fix-twig-cs-fixer

lint: ## Run all linters
lint: stan lint-php lint-doctrine lint-js-css lint-container lint-twig
lint: stan lint-php lint-doctrine lint-js-css lint-container lint-twig lint-twig-cs-fixer

ci: ## Run CI locally
ci: coverage warmup lint
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"symfony/requirements-checker": "^2.0",
"symfony/stopwatch": "~8.0.0",
"symfony/web-profiler-bundle": "~8.0.0",
"vincentlanglet/twig-cs-fixer": "^3.13",
"zenstruck/foundry": "^2.4"
},
"replace": {
Expand Down
140 changes: 139 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions symfony.lock
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,15 @@
"twig/extra-bundle": {
"version": "v3.5.1"
},
"vincentlanglet/twig-cs-fixer": {
"version": "3.13",
"recipe": {
"repo": "github.com/symfony/recipes-contrib",
"branch": "main",
"version": "3.0",
"ref": "d42582ae1bce86fd43491d6264c738b0867f8ffe"
}
},
"zenstruck/foundry": {
"version": "2.8",
"recipe": {
Expand Down