Skip to content

Latest commit

 

History

History
49 lines (31 loc) · 1.04 KB

twigcs.md

File metadata and controls

49 lines (31 loc) · 1.04 KB

TwigCs

Check Twig coding standard based on FriendsOfTwig/TwigCs .

Composer

composer require --dev friendsoftwig/twigcs

Config

The task lives under the twigcs namespace and has following configurable parameters:

# grumphp.yml
parameters:
    tasks:
        twigcs:
            path: '.'
            severity: 'warning'
            ruleset: 'FriendsOfTwig\Twigcs\Ruleset\Official'
            triggered_by: ['twig']

path

Default: null

By default . (current folder) will be used. You can specify an alternate location by changing this option.

severity

Default: 'warning'

Severity level of sniffing (possibles values are : 'IGNORE', 'INFO', 'WARNING', 'ERROR').

ruleset

Default: 'FriendsOfTwig\Twigcs\Ruleset\Official'

Ruleset used, default ruleset is based on official one from twig

triggered_by

Default: [twig]

This option will specify which file extensions will trigger this task.