It looks like twigcs is setup to check the *.twig files in a folder.
Do you think it would possible to check other sources, e.g.
echo $twig->createTemplate('Hi {{ name }}')->render(['name' => 'Name']);
$loader = new \Twig\Loader\ArrayLoader([
'index' => 'Hi {{ name }}',
]);
$twig = new \Twig\Environment($loader);
echo $twig->render('index', ['name' => 'Name']);
{{ include(template_from_string('Hi {{ name }}')) }}
It looks like twigcs is setup to check the
*.twigfiles in a folder.Do you think it would possible to check other sources, e.g.
{{ include(template_from_string('Hi {{ name }}')) }}