We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
twig:lint
excludes
1 parent f332fd8 commit 4f75745Copy full SHA for 4f75745
templates.rst
@@ -818,6 +818,13 @@ errors. It's useful to run it before deploying your application to production
818
# you can also show the deprecated features used in your templates
819
$ php bin/console lint:twig --show-deprecations templates/email/
820
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
828
When running the linter inside `GitHub Actions`_, the output is automatically
829
adapted to the format required by GitHub, but you can force that format too:
830
0 commit comments