Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude node_modules from Twig linting. #36

Closed
wants to merge 2 commits into from

Conversation

adamzimmermann
Copy link
Contributor

Description

Exclude node_modules from Twig linting.

Motivation / Context

Once theme dependencies are built locally, the composer cs-check command will often fail when it finds malformed Twig templates in external dependencies. This will exclude those directories from Twig linting.

馃憖 I proposed adding this to the default finder in the Twig linting repo. If my idea is accepted there, this PR should be closed.

Testing Instructions / How This Has Been Tested

Required this branch into a repo that previously had this issue, then ran composer cs-check and saw it pass with no issues.

Screenshots

Screen Shot 2021-10-04 at 4 18 19 PM

Documentation

Maybe?

@adamzimmermann
Copy link
Contributor Author

VincentLanglet/Twig-CS-Fixer#40 (comment)

Addresses this. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant