Skip to content

Commit c42fcb6

Browse files
committed
minor #19504 Document twig:lint new option excludes (94noni)
This PR was squashed before being merged into the 7.1 branch. Discussion ---------- Document `twig:lint` new option `excludes` from symfony/symfony#50864 Commits ------- 4f75745 Document `twig:lint` new option `excludes`
2 parents 76cad50 + 4f75745 commit c42fcb6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

templates.rst

+7
Original file line numberDiff line numberDiff line change
@@ -818,6 +818,13 @@ errors. It's useful to run it before deploying your application to production
818818
# you can also show the deprecated features used in your templates
819819
$ php bin/console lint:twig --show-deprecations templates/email/
820820
821+
# you can also excludes directories
822+
$ php bin/console lint:twig templates/ --excludes=data_collector --excludes=dev_tool
823+
824+
.. versionadded:: 7.1
825+
826+
The option to exclude directories was introduced in Symfony 7.1.
827+
821828
When running the linter inside `GitHub Actions`_, the output is automatically
822829
adapted to the format required by GitHub, but you can force that format too:
823830

0 commit comments

Comments
 (0)