Currently, .twig files are checked by ht HTML Scanner ( Jira )
It seems that twig is not fully supported - for example comments in twig are scanned like normal code:
{# <input id="test" placeholder="test1" /> #}
<input id="test" placeholder="test2" />
Will result in:
Duplicate id "test" found. First occurence was on line ...