twigcs
twigcs copied to clipboard
The missing checkstyle for twig!
In [Twig documentation](https://twig.symfony.com/doc/3.x/tags/macro.html), there are space surrounding the `=` operator in macro declarations. Problem is that this syntax is reported as errored by the rule responsible to check named arguments...
It would be great if the ConsoleReporter could add additional output lines using the github action format when running in github actions (there is an env var to detect that)....
Hi, For me, bellow shouldn' be an error. What do you you think ? `l.2 c.25 : ERROR There should be 0 space before the ".".` `l.3 c.71 : ERROR...
At the moment we can only pass one ruleset. We're using friendsoftwig/twigcs in combination with other rulesets and run it from [Grumphp](https://github.com/phpro/grumphp/blob/master/doc/tasks/twigcs.md). It would be useful if the --ruleset option...
We should create a new rule about indentation checking. The official ruleset states: > Indent your code inside tags (use the same indentation as the one used for the target...
https://symfony.com/doc/3.4/templating/namespaced_paths.html In the past, Symfony used to suggest using colons instead of @ namespaces. Adding a rule to check @ namespaces are being used instead of colons would be potentially...
Drupal core use multiline block statements to set Twig variables like follows. https://github.com/drupal/drupal/blob/8.6.10/core/themes/classy/templates/block/block.html.twig#L28 Twig coding standard does not forbid this syntax. So I think _Twigcs_ should no complain about that....
My issue is exactly what Kyle says here in the context of prettier's twig formatter: https://github.com/trivago/prettier-plugin-twig-melody/issues/47#issue-611254163 Is a custom syntax many people use in Craft, and while it makes sense...
Hello, It's been two years since I left the PHP/Symfony world and I almost certainly won't return in the coming years. I'm facing a difficult decision in regard of this...
It would be useful if twigcs could detect deprecated features: https://twig.symfony.com/doc/1.x/recipes.html#displaying-deprecation-notices #### Steps required to reproduce the problem 1. Write a Twig 2 template containing this: ```twig {% spaceless %}...