rareloop / twigcs-ruleset
Custom TwigCS ruleset
Installs: 34 777
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 3
Forks: 1
Open Issues: 0
Requires
- php: >=7.2
- friendsoftwig/twigcs: ^5.0||^6.0
This package is auto-updated.
Last update: 2024-11-09 15:46:28 UTC
README
This is a custom ruleset for Twigcs.
It follows the official Twig coding style with the following exceptions:
- Use
lowerCamelCase
variables instead ofsnake_case
- Enforces 1 space inside a hash e.g.
{ key: expr, key: expr }
instead of the default{key: expr, key: expr}
Installation
composer require rareloop/twigcs-ruleset --dev
Usage
twigcs path/to/files --ruleset \\Rareloop\\Twigcs\\Ruleset\\Rareloop