rareloop/twigcs-ruleset

Custom TwigCS ruleset

Maintainers

Package info

github.com/Rareloop/twigcs-ruleset

pkg:composer/rareloop/twigcs-ruleset

Statistics

Installs: 56 175

Dependents: 0

Suggesters: 0

Stars: 6

Open Issues: 0

v2.0.1 2024-05-09 14:39 UTC

This package is auto-updated.

Last update: 2026-03-09 18:29:02 UTC


README

This is a custom ruleset for Twigcs.

It follows the official Twig coding style with the following exceptions:

  • Use lowerCamelCase variables instead of snake_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