Skip to content

Commit b72b591

Browse files
committed
feature #1008 Be more specific in linting twig and yaml files (chr-hertel)
This PR was merged into the master branch. Discussion ---------- 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 Commits ------- 11bcecf Be more specific in linting twig and yaml files
2 parents fed46b3 + 11bcecf commit b72b591

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)