Closed (fixed)
Project:
Drupal Site Audit
Version:
1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Jun 2026 at 11:31 UTC
Updated:
14 Jul 2026 at 14:50 UTC
Jump to comment: Most recent

Comments
Comment #3
trebormcFixed in the dev branch. The Twig analyzer was scanning line by line and matching anti-patterns like kint() or dump() even when they only appeared inside a comment, so commented-out debug code such as {# {{ kint(node) }} #} was flagged as a false positive even though it never runs.
I added a stripComments() helper for both Twig comments ({# ... #}, single or multiline) and docblock comment lines (header lines starting with '*') before the detection runs.
Comment #4
trebormcComment #6
anybodyNice @trebormc - FYI just saw you neither credited yourself for the work, nor us for the report. Think you should do that!
(Link down in the issues)
Comment #7
trebormcDone