Custom twigcs ruleset extending Official
twigcs ruleset.
Run composer require to add the package to your project.
composer require factorial-io/twigcs-extension
./vendor/bin/twigcs /path/to/views/ --ruleset Factorial\\twigcs\\TwigCsRuleset
Where, /path/to/views
is the folder to scan for the twig files.