New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to exclude node_modules from \Twig\Util\DeprecationCollector::collectDir() #3382
Comments
For now, there is no way to restrict that. This collector is kept simple. Does the |
Not in templates but in theme directory, the example is
Looks I can build custom iterator using Finder component and pass it to |
hmm, indeed. I forgot that the I'm closing this issue as there is nothing to change in Twig to unlock that. |
@stof thank you a lot! |
as for me, will be cool to have ability to add the "ignore list" of dirs or files |
Drupal's https://www.drupal.org/project/upgrade_status using this class to find deprecated stuff in templates and code
Often at development time
node_modules
directory exist withing templates and it makes scan very slowIs there a way to exclude some subdirs from this scan?
The text was updated successfully, but these errors were encountered: