All docs

Handle false positives

Last updated 23 November 2026

A false positive here is a finding of a rule on content that is not a problem. A rule matches a pattern, and a pattern can match something harmless: a script that deletes its own temporary directory, a hook that uploads a report whose name holds a sensitive word.

What you do about one depends on how far it reaches: accept one finding with a reason, quiet a rule that is noisy across a repository, or tell the project so that the rule can change. First, decide whether it is one.