Replies: 2 comments
-
I can confirm this is happening and makes the plugin unusable... |
Beta Was this translation helpful? Give feedback.
0 replies
-
@cameronprince If you need this functionality, you can update TwigCS to the latest version and use the patch in this comment to augment the GrumPHP TwigCS task. Ultimately, though, this is going to require TwigCS to address the issue, as expressed in the other comments of that pull request. Hope it helps. Note that it might be a little slow on the first run, but it should speed up after that. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have a GrumPHP setup that utilizes the TwigCS task, but the task runs on the entire project instead of just the diff on pre-commit. This means that no commit will be passing until ALL twig issues are fixed.
It works as intended when run manually in a specific folder, though.
Should be noted that we're using lando for this project, but I do not suspect that is part of the issue. All other tasks work fine.
I've created a simple test project to illustrate this issue.
Steps to reproduce:
Fix either twig file in
src/templates
, but not both. I fixedtwo.twig
by adding{{ something }}
to the file.Result:
You should see TwigCS is unnecessarily checking
one.twig
which is unchanged and prevents the commit.Beta Was this translation helpful? Give feedback.
All reactions