Skip to content

Commit

Permalink
minor #19504 Document twig:lint new option excludes (94noni)
Browse files Browse the repository at this point in the history
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`
  • Loading branch information
javiereguiluz committed Feb 5, 2024
2 parents 76cad50 + 4f75745 commit c42fcb6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions templates.rst
Original file line number Diff line number Diff line change
Expand Up @@ -818,6 +818,13 @@ errors. It's useful to run it before deploying your application to production
# you can also show the deprecated features used in your templates
$ php bin/console lint:twig --show-deprecations templates/email/
# you can also excludes directories
$ php bin/console lint:twig templates/ --excludes=data_collector --excludes=dev_tool
.. versionadded:: 7.1

The option to exclude directories was introduced in Symfony 7.1.

When running the linter inside `GitHub Actions`_, the output is automatically
adapted to the format required by GitHub, but you can force that format too:

Expand Down

0 comments on commit c42fcb6

Please sign in to comment.