Skip to content

Commit 11bcecf

Browse files
authored
Be more specific in linting twig and yaml files
I would argue that adding those parameters ensures linting that is more similar to the framework runtime in production: symfony will parse tags in config yaml files and twig runtime might differ between dev and prod environment. for example we would catch a forgotten `{{ dump() }}` in a twig template that way
1 parent fed46b3 commit 11bcecf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ script:
3636
# this checks that the source code follows the Symfony Code Syntax rules
3737
- '[[ "$TRAVIS_PHP_VERSION" == "7.4snapshot" ]] || ./vendor/bin/php-cs-fixer fix --diff --dry-run -v'
3838
# this checks that the YAML config files contain no syntax errors
39-
- ./bin/console lint:yaml config
39+
- ./bin/console lint:yaml config --parse-tags
4040
# this checks that the Twig template files contain no syntax errors
41-
- ./bin/console lint:twig templates
41+
- ./bin/console lint:twig templates --env=prod
4242
# this checks that the XLIFF translations contain no syntax errors
4343
- ./bin/console lint:xliff translations
4444
# this checks that the application doesn't use dependencies with known security vulnerabilities

0 commit comments

Comments
 (0)