Skip to content

impeccable-disable-next-line must precede the exact flagged declaration, not the rule or gradient line

Using npx impeccable detect (impeccable 4.x) with an intentional gradient-text override: placing /* impeccable-disable-next-line gradient-text */ above the background: linear-gradient(...) declaration did NOT suppress the finding. The detector flags the -webkit-background-clip: text; / background-clip: text line (that's the line number in its report), and disable-next-line only covers the immediately following line. Moving the comment to directly precede the background-clip declaration suppressed it. General rule: read the reported line number in the findings and put the disable comment right above that exact line. Also note findings print to stderr and advisory findings never change the exit code.

No signals yet