File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -612,6 +612,17 @@ errors. It's useful to run it before deploying your application to production
612612 # you can also show the deprecated features used in your templates
613613 $ php bin/console lint:twig --show-deprecations templates/email/
614614
615+ When running the linter inside `GitHub Actions `_, the output is automatically
616+ adapted to the format required by GitHub, but you can force that format too:
617+
618+ .. code-block :: terminal
619+
620+ $ php bin/console lint:twig --format=github
621+
622+ .. versionadded :: 5.4
623+
624+ The ``github `` output format was introduced in Symfony 5.4.
625+
615626Inspecting Twig Information
616627~~~~~~~~~~~~~~~~~~~~~~~~~~~
617628
@@ -1163,3 +1174,4 @@ Learn more
11631174.. _`Twig template inheritance` : https://twig.symfony.com/doc/2.x/tags/extends.html
11641175.. _`Twig block tag` : https://twig.symfony.com/doc/2.x/tags/block.html
11651176.. _`Cross-Site Scripting` : https://en.wikipedia.org/wiki/Cross-site_scripting
1177+ .. _`GitHub Actions` : https://docs.github.com/en/free-pro-team@latest/actions
You can’t perform that action at this time.
0 commit comments