Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Some links on this page are affiliate links: if you buy through them we may earn a commission, at no extra cost to you.

Before suppressing a code-scan alert, verify that it is genuinely wrong in your application’s context. Then use the narrowest tool-supported exception: a local suppression for one confirmed match, a finding-level dismissal for one managed alert, or a carefully tested rule change for a recurring safe pattern. A real vulnerability the team chooses to tolerate is accepted risk—not a false positive—and should be tracked as such.

First decide what the alert represents

Static-analysis tools identify code patterns and potential data flows; their results need interpretation in context. OWASP notes that missing information about external systems can contribute to false positives, so an alert alone neither proves a vulnerability nor proves the code is safe. Review the rule, the reported evidence, and the application behavior before choosing an outcome. OWASP’s overview of static code analysis explains these limitations.

False positive

The reported problem is not present in this specific context. For example, the analysis may not recognize a framework sanitizer that is actually applied to the relevant input. Confirm the sanitizer’s behavior and that the data reaches the sensitive operation only after sanitization; do not infer safety merely because the scanner lacks a model for it.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Accepted risk

The issue is real, but an authorized decision-maker has chosen to tolerate it, perhaps temporarily or because a compensating control changes the exposure. Record it as accepted risk, with ownership and a revisit mechanism. Do not mark it false positive: that would misstate the security decision.

#1 Best Overall
GameStop Physical Gift Card
  • Redeemable at US GameStop, EB Games, Babbage's, Electronic Boutique, EBX, Planet X, and Software Etc. stores. Also redeemable online at and GameStop.com and EBGames.com.
  • Over 6,100 stores located throughout the United States.
  • GameStop. Power to the Players.
  • Redemption: Instore and Online
  • No returns and no refunds on gift cards.

Out of scope, duplicate, or stale result

A finding in generated, vendor, test, or documentation code may be outside a project’s scanning policy, but that is a scope decision rather than proof of a false positive. A duplicate may need deduplication, while an obsolete alert may need refreshed scan data. Check the code, finding identity, and scan configuration before adding a source exception.

Validate a suspected false positive

Gather enough evidence to explain why the rule does not apply here. If exploitability remains unclear, ask a security reviewer rather than suppressing on intuition.

  • Read the rule and alert evidence. Identify the condition it detects, the reported source and sink, and any assumptions the rule makes.
  • Trace the data flow. Follow user-controlled or otherwise untrusted input to the sensitive operation. Check validation, encoding, authorization, and sanitization at the relevant points.
  • Check actual framework and runtime behavior. Confirm how the library, framework, configuration, and deployment environment behave in this application; a function name or comment is not evidence that protection is effective.
  • Record the basis for the verdict. Note the code and rule or finding ID, and the specific behavior or evidence that makes this instance safe or inapplicable.

If many legitimate uses trigger the same rule because the analyzer does not understand a project framework or sanitizer, consider improving the model or rule. GitHub’s code-scanning triage guidance describes unsupported sanitization libraries as a possible source of CodeQL false positives and points toward improving analysis. That is a model gap to investigate, not proof that every matching use is safe.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Xbox Physical Gift Card
  • XBOX GIFT CARD: Buy full digital game downloads, game add-ons, in-game currency, memberships, devices, apps, movies, TV shows, and more.
  • DIGITAL GAMES: Choose from hundreds of games, from AAA to indie options. Start playing the moment your most anticipated game is available when you pre-order and pre-download it.
  • GAME AD-ONS: Extend the experience of your favorite games with add-ons and in-game currency.
  • MOVIES & TV SHOWS: Rent or buy new and popular movies and TV shows from a massive library.
  • PERFECT GIFT: Great as a gift for a friend or yourself. Xbox Gift Cards are easy to use, never expire, and give the freedom to pick the gift they want. Enjoy more ways to play without a credit card attached to your Microsoft account.

Choose the narrowest suppression that fits

Scope determines what future checks you lose, how visible the decision is, and where its context is retained. Prefer the smallest durable change that addresses the verified problem.

Method Best fit Scope and trade-off
Inline suppression One verified code location Visible beside the code, but syntax and attachment rules are tool-specific; it can also hide future problems at that location.
Finding-level dismissal One alert already managed in a security platform Preserves triage context, but persistence and coverage depend on the platform and scan configuration.
Rule refinement A recurring safe pattern with a stable explanation Can reduce repeated noise, but a flawed change can hide real findings. Test both safe and risky cases.
File or path exclusion A whole file class that genuinely should not be scanned Central and easy to maintain, but suppresses every matching check under the excluded paths.
Disable or remove a rule The rule is irrelevant to the project or is being replaced Broadest loss of coverage; assess everything else the rule detects before changing it.
Risk acceptance A real finding the team has decided to tolerate Requires ownership and a revisit mechanism; it is not a false-positive suppression.

Apply the exception in the right place

For one code location, use documented tool-specific syntax

Do not copy a comment from one scanner into another: suppression syntax and the line or syntax node it affects differ. These examples apply only to the named tools:

  • ESLint: // eslint-disable-next-line no-console -- reason disables the named rule on the next line and includes an explanation. ESLint advises using inline disables only for clear, valid reasons, documenting why, and considering configuration files for group-wide changes. Inline configuration can be disabled with noInlineConfig or --no-inline-config. See ESLint rule configuration.
  • Semgrep: Semgrep documents nosemgrep comments for exempting a specific legitimate use while leaving other uses detectable. Its AppSec Platform also supports triaging findings as ignored with reasons that include false positive and acceptable risk. Syntax and behavior depend on scan mode and platform workflow; check the documentation for the installed version. See Semgrep rule examples and Semgrep finding resolution.
  • Bandit: In the documented Bandit 1.7.3 configuration, # nosec suppresses results associated with the marked line. It is a broad line suppression; check the installed version’s documentation before relying on narrower behavior. See Bandit configuration documentation.
  • Clang Static Analyzer: Clang’s [[clang::suppress]] attribute can suppress static-analyzer issues at an individual statement. Clang notes that the warning’s reported line may not be the best suppression location. This attribute does not suppress ordinary Clang compiler warnings. See the Clang attribute reference.

Use the tool’s documented placement rules, especially if the alert points to a different line than expected. A misplaced comment may have no effect or may suppress more than intended.

Rank #3
$100 XBOX Gift Card [Digital Code]
  • THE PERFECT GAMING GIFT — Buy an XBOX Gift Card for yourself or a friend and let them choose the games, add‑ons, subscriptions, and accessories they want most.
  • USE FOR GAMES & CONTENT — Redeem for thousands of digital XBOX games, from backward compatible classics to the latest new releases, plus DLC and in‑game currency.
  • GAME PASS READY — Apply your balance toward XBOX Game Pass Ultimate to play new titles on day one* and access a library of hundreds of high‑quality console games.
  • PRE‑ORDER & PRE‑INSTALL GAMES — Use your balance to pre‑order and pre‑download upcoming titles so you’re ready to play the moment they launch.
  • NO FEES OR EXPIRATION — XBOX Gift Cards never expire and have no service fees, so your balance is ready whenever you are.

For a managed alert, triage the finding in the platform

A platform dismissal changes alert state; it does not change the source code or automatically silence another scanner. In GitHub code scanning, a user with write access can dismiss an alert in the repository’s code-scanning interface, select a reason, and add a comment with context. GitHub says the dismissal applies across branches, moves the alert to the closed list, and prevents the same code from alerting on the next scan. Multiple analysis configurations can have separate alert sets, so check the configuration associated with the alert. See GitHub’s alert-resolution guidance and its overview of code-scanning alert configurations.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

GitLab’s documented workflow lets maintainers dismiss a vulnerability using the “False positive” reason and a comment; dismissed findings do not appear in future scans unless reintroduced. Its SAST false-positive detection is a separate AI feature with product prerequisites and human-review guidance, not proof that a finding is false. See GitLab’s false-positive workflow and SAST rules documentation.

Finding-state handling can also be represented outside source code. The OASIS SARIF 2.0 specification distinguishes suppressions marked external, which are stored externally, from those marked accepted. Consumers may handle these states differently, so do not assume every scanner or platform preserves or interprets them alike. See the SARIF 2.0 specification.

Rank #4
Fortnite Physical Gift Card
  • An Epic Games account is required to redeem an Epic Games Store Card code
  • If playing on a console platform (PlayStation Network, Xbox Live, Nintendo Switch or Mobile) you need to link your Epic Games account to that gaming platform (one time) to redeem your gift card code
  • The 16 digit code on the back of the card WILL NOT work if redeemed directly through your gaming platform (PlayStation Network, Xbox Live, Nintendo Switch, Mobile, etc.)
  • Note: Nintendo devices do not support Fortnite Shared Wallet, so V-Bucks purchased using your account balance will not show up on your Nintendo device. However, if you purchase items in the web Item Shop — or another platform where you play Fortnite — those items will be available in your Locker across all platforms.
  • Redemption: Online

For a repeated safe pattern, improve the rule

If the same well-understood safe pattern is repeatedly flagged, tune the rule or project configuration rather than accumulating local exceptions. Keep the change as narrow as possible, and test it against both a legitimate safe example and a known risky example. OWASP recommends tuning security testing to reduce noise without undermining its value in its security-testing guidance.

For a real issue, use risk acceptance—not a false-positive label

Risk acceptance is a governance decision, not a universal scanner feature. As one workflow example, DefectDojo documents recording rationale and ownership, with optional expiry behavior that can return findings for re-examination. See DefectDojo risk acceptances.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Document the decision

Tools differ in what they require. As a governance practice, keep enough information for another maintainer to understand the decision and revisit it:

Best Value
$25 PlayStation Store Gift Card [Digital Code]
  • Redeem for anything on PlayStationStore: games, add-ons, PlayStationPlus and more.
  • Everything you want to play. Choose from the largest library of PlayStation content.
  • Use gift card funds to contribute towards PlayStationPlus memberships.
  • Rule or finding ID and affected file, code location, or alert.
  • Classification: false positive, out of scope, duplicate or stale, or accepted risk.
  • Reason and supporting evidence, including relevant validation, sanitizer, runtime behavior, or compensating control.
  • Decision owner or reviewer and the date.
  • A review trigger or expiry, such as a change to the code, framework, scanner, rule, or compensating control.

Verify that the suppression is narrow and effective

  1. Run the same relevant scanner and configuration against the changed code. Confirm the intended finding is gone or has the intended triage state.
  2. Check a known risky test case, or an equivalent controlled example, to verify the rule still detects the condition it is meant to catch.
  3. Check the default branch and any other scan configurations or scanners that analyze the same code. An inline exception or platform dismissal may apply only to one tool or alert scope.
  4. Review the resulting change and alert record to ensure the explanation is attached to the right finding and the exception did not cover neighboring code unintentionally.

When alerts recur or the pattern changes

Do not repeat an exception automatically when an alert returns. First determine whether it is the same finding, a new match, a changed code location, a different scan configuration, or a changed scan identity. Then check whether the code, analysis, or ruleset changed and whether the original evidence still applies. Review exceptions after material changes and remove obsolete ones.

If many safe cases recur, improve the rule or its model. If the code is vulnerable, fix it. Broad file exclusions and disabling rules are poor substitutes for resolving either problem: they can hide future true findings that have not yet been reviewed.

Quick Recap

Bestseller No. 1
GameStop Physical Gift Card
GameStop Physical Gift Card
Over 6,100 stores located throughout the United States.; GameStop. Power to the Players.; Redemption: Instore and Online
$25.00
Bestseller No. 2
Xbox Physical Gift Card
Xbox Physical Gift Card
MOVIES & TV SHOWS: Rent or buy new and popular movies and TV shows from a massive library.
$25.00
Bestseller No. 3
$100 XBOX Gift Card [Digital Code]
$100 XBOX Gift Card [Digital Code]
Gift cards are region‑specific (U.S. only) and cannot be transferred once redeemed.
$100.00
Bestseller No. 4
Fortnite Physical Gift Card
Fortnite Physical Gift Card
An Epic Games account is required to redeem an Epic Games Store Card code; Redemption: Online
$50.00
Bestseller No. 5
$25 PlayStation Store Gift Card [Digital Code]
$25 PlayStation Store Gift Card [Digital Code]
Redeem for anything on PlayStationStore: games, add-ons, PlayStationPlus and more.; Everything you want to play. Choose from the largest library of PlayStation content.
$25.00

Common suppression mistakes

  • Using a broad exclusion for one match: a directory or rule exclusion affects future findings as well as the reviewed one.
  • Assuming a comment works everywhere: comments are scanner-specific and may attach to a line or syntax node other than the alert’s displayed line.
  • Calling tolerated risk a false positive: this obscures the fact that a real issue remains and needs ownership and review.
  • Treating a clean scan as proof of safety: suppression removes or changes a report; it does not establish that the code is secure. OWASP cautions that static analysis has limitations and needs informed interpretation.
  • Assuming one dismissal covers every scanner: source comments, platform alert state, branches, and scan configurations can have different scopes and persistence.
  • Trusting automated triage without review: an automated confidence assessment is not ground truth; inspect the code and context before making the security decision.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.