Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9241593

Browse filesBrowse files
committed
minor #15559 [Twig] Document the GitHub actions format in lint:twig (javiereguiluz)
This PR was merged into the 5.4 branch. Discussion ---------- [Twig] Document the GitHub actions format in lint:twig Fixes #15555. Commits ------- 639a461 [Twig] Document the GitHub actions format in lint:twig
2 parents b17d0cf + 639a461 commit 9241593
Copy full SHA for 9241593

File tree

Expand file treeCollapse file tree

1 file changed

+12
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+12
-0
lines changed

‎templates.rst

Copy file name to clipboardExpand all lines: templates.rst
+12Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.