Skip to content

Latest commit

 

History

History
56 lines (35 loc) · 1.17 KB

twigcs.md

File metadata and controls

56 lines (35 loc) · 1.17 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
grumphp:
    tasks:
        twigcs:
            path: '.'
            severity: 'warning'
            ruleset: 'FriendsOfTwig\Twigcs\Ruleset\Official'
            triggered_by: ['twig']
            exclude: []

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.

exclude

Default: []

This option will specify which relative subfolders or files will be exclude to this task.