[2.0.0-beta5] Adopt vincentlanglet/twig-cs-fixer for Twig coding standards

Created on 26 October 2024, 3 months ago

Like what Core is planning to do: πŸ“Œ Adopt friendsoftwig/twigcs for Twig coding standards Needs review

Our templates are already 99% compliant, the main nicety is the removal of quote in mapping keys:

-      {{ 'Replaces'|t }}: <a href="{{ url('ui_patterns_library.single', {'provider': component.replaces|split(':') |first, 'machineName': component.replaces|split(':')|last }) }}">{{ component.replaces }}</a>
+      {{ 'Replaces'|t }}: <a href="{{ url('ui_patterns_library.single', {provider: component.replaces|split(':')|first, machineName: component.replaces|split(':')|last}) }}">{{ component.replaces }}</a>

We need to do 2 tasks:

  • run the twig linter on existign codebase
  • add the linter to our CI pipeline
πŸ“Œ Task
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡«πŸ‡·France pdureau Paris

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024