False Positive
PronunciationFAWLS POZ-i-tiv
Definition
A false positive happens when a tool, test, or security scanner reports an error or vulnerability, but the code is actually working correctly.
Where you hear it
In CI/CD pipelines, security audits, static analysis tools, and automated test suites.
Examples
The security scanner flagged a vulnerability, but it was just a false positive.
We had to update the linter rules to ignore false positives in our test files.
The linter flagged a correct line as an error, a false positive that we suppressed.
Common mistake
Treating every alert as a real bug without investigating, which wastes time trying to fix code that is already correct.
Don't confuse with
False positive is often confused with false negative; a false positive incorrectly flags an issue that does not exist, while a false negative fails to detect an issue that is actually present.
Say it at work
- In a meeting or chat
I checked the logs and the alert seems to be a false positive, so we can probably ignore it for now.
- In an email or ticket
Please review the attached report, as some of the flagged vulnerabilities appear to be false positives due to our specific configuration.
Keep exploring
More in Testing & Quality