Using Twig CS fixer #511
alexmerlin
started this conversation in
General
Replies: 1 comment
-
the composer commands don't include a location, so the check is run in the whole project, not just in src |
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
-
This feature is mostly forgotten since it was implemented.
We should promote this internally so that our developers start using it on a daily basis.
Before each commit, we should validate Twig files (inside the
src
directory - @bidi47 correct me if I'm wrong on this one) using this command:which will output any coding style error that needs to be fixed.
Then we can fix them manually or using this command
Both Composer commands are defined in composer.json.
We should also investigate if this feature can be turned into a CI tool that runs on each push - that way even if we forget to run it locally, invalid code will not get through to the default branch.
Beta Was this translation helpful? Give feedback.
All reactions