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
612
612
# you can also show the deprecated features used in your templates
613
613
$ php bin/console lint:twig --show-deprecations templates/email/
614
614
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
+
615
626
Inspecting Twig Information
616
627
~~~~~~~~~~~~~~~~~~~~~~~~~~~
617
628
@@ -1163,3 +1174,4 @@ Learn more
1163
1174
.. _`Twig template inheritance` : https://twig.symfony.com/doc/2.x/tags/extends.html
1164
1175
.. _`Twig block tag` : https://twig.symfony.com/doc/2.x/tags/block.html
1165
1176
.. _`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