Add Symfony lint commands to CI pipeline #14
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add Symfony's built-in linters to the Forgejo CI pipeline to catch correctness issues early:
php bin/console lint:containervalidates service container wiring (catches type mismatches in injected arguments and dead service configs). The more type-hints in the code, the more it catches.php bin/console lint:twig templates/checks Twig template syntax and flags references to nonexistent filters/functions.php bin/console lint:yaml config/validates YAML config syntax.These are correctness checks, not architecture enforcement, cheap, fast, and they catch wiring/syntax errors before runtime. Add them as steps in the CI workflow alongside the existing test/phpstan/php-cs-fixer steps.