Lune

FSE2025Top-tier venue

An Empirical Study of Suppressed Static Analysis Warnings

Huimin Hu, Yingying Wang, Julia Rubin, Michael Pradel

Abstract

Scalable static analyzers are popular tools for finding incorrect, inefficient, insecure, and hard-to-maintain code early during the development process. Because not all warnings reported by a static analyzer are immediately useful to developers, many static analyzers provide a way to suppress warnings, e.g., in the form of special comments added into the code. Such suppressions are an important mechanism at the interface between static analyzers and software developers, but little is currently known about them. This paper presents the first in-depth empirical study of suppressions of static analysis warnings, addressing questions about the prevalence of suppressions, their evolution over time, the relationship between suppressions and warnings, and the reasons for using suppressions. We answer these questions by studying projects written in three popular languages and suppressions for warnings by four popular static analyzers. Our findings show that (i) suppressions are relatively common, e.g., with a total of 7,357 suppressions in 46 Python projects, (ii) the number of suppressions in a project tends to continuously increase over time, (iii) surprisingly, 50.8% of all suppressions do not affect any warning and hence are practically useless, (iv) some suppressions, including useless ones, may unintentionally hide future warnings, and (v) common reasons for introducing suppressions include false positives, suboptimal configurations of the static analyzer, and misleading warning messages. These results have actionable implications, e.g., that developers should be made aware of useless suppressions and the potential risk of unintentional suppressing, that static analyzers should provide better warning messages, and that static analyzers should separately categorize warnings from third-party libraries.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

4 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • CodeMapper: A Language-Agnostic Approach to Mapping Code Regions Across Commits cites The evolution of type annotations in python: an empirical study
  • CodeMapper: A Language-Agnostic Approach to Mapping Code Regions Across Commits cites CodeShovel: Constructing Method-Level Source Code Histories
  • CodeCureAgent: Automatic Classification and Repair of Static Analysis Warnings cites Learning to Reduce False Positives in Analytic Bug Detectors
  • LLM-Based Repair of Static Nullability Errors cites Detecting False Alarms from Automatic Static Analysis Tools: How Far are We?
  • The evolution of type annotations in python: an empirical study cites CodeShovel: Constructing Method-Level Source Code Histories
  • Sifting the Noise: A Comparative Study of LLM Agents in Vulnerability False Positive Filtering cites Learning to Reduce False Positives in Analytic Bug Detectors
  • Sifting the Noise: A Comparative Study of LLM Agents in Vulnerability False Positive Filtering cites Detecting False Alarms from Automatic Static Analysis Tools: How Far are We?
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. CodeMapper: A Language-Agnostic Approach to Mapping Code Regions Across CommitsHuimin Hu, Michael PradelICSE 2026
  2. CodeCureAgent: Automatic Classification and Repair of Static Analysis WarningsPascal Joos, Islem Bouzenia, Michael PradelFSE 2026
  3. LLM-Based Repair of Static Nullability ErrorsNima Karimipour, Pascal Joos, Michael Pradel, Martin Kellogg et al.ISSTA 2026
  4. Sifting the Noise: A Comparative Study of LLM Agents in Vulnerability False Positive FilteringYunpeng Xiong, Ting ZhangISSTA 2026

Builds on10

  1. PYEVOLVE: Automating Frequent Code Changes in Python ML SystemsMalinda Dilhara, Danny Dig, Ameya KetkarICSE 2023 · 46 citations
  2. Detecting False Alarms from Automatic Static Analysis Tools: How Far are We?Hong Jin Kang, Khai Loong Aw, David LoICSE 2022 · 42 citations
  3. Learning to Reduce False Positives in Analytic Bug DetectorsAnant Kharkar, Roshanak Zilouchian Moghaddam, Matthew Jin, Xiaoyu Liu et al.ICSE 2022 · 33 citations
  4. CodeShovel: Constructing Method-Level Source Code HistoriesFelix Grund, Shaiful Alam Chowdhury, Nick C. Bradley, Braxton Hall et al.ICSE 2021 · 33 citations
  5. The evolution of type annotations in python: an empirical studyLuca Di Grazia, Michael PradelFSE 2022 · 29 citations

Related papers

  1. Tailoring programs for static analysis via program transformationRijnard van Tonder, Claire Le GouesICSE 2020 · 6 citations
  2. A large-scale study of usability criteria addressed by static analysis toolsMarcus Nachtigall, Michael Schlichtig, Eric BoddenISSTA 2022 · 38 citations
  3. Exploring the Architectural Impact of Possible Dependencies in Python SoftwareWuxia Jin, Yuanfang Cai, Rick Kazman, Gang Zhang et al.ASE 2020 · 13 citations
  4. An empirical study on the effectiveness of static C code analyzers for vulnerability detectionStephan Lipp, Sebastian Banescu, Alexander PretschnerISSTA 2022 · 99 citations
  5. Striking a Balance: Pruning False-Positives from Static Call GraphsAkshay Utture, Shuyang Liu, Christian Gram Kalhauge, Jens PalsbergICSE 2022 · 18 citations
Dusk over the sea between two cliffs drawn in fine vertical lines