Skip to content

Commit 639a461

Browse files
committed
[Twig] Document the GitHub actions format in lint:twig
1 parent 9c34648 commit 639a461

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

templates.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
615626
Inspecting 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

0 commit comments

Comments
 (0)