Skip to content

Rareloop/twigcs-ruleset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rareloop Twig Coding Standards

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