How to Find Actionable Static Analysis Warnings: A Case Study with FindBugs

Rahul Yedida, Hong Jin Kang, Huy Tu, Xueqi Yang, David Lo +1 more
5/21/2022
cs.SEcs.LG

Official code: yrahul3910/static-code-warnings (2 stars, HTML, Unlicense, last commit 2022-09-28).

Abstract

Automatically generated static code warnings suffer from a large number of false alarms. Hence, developers only take action on a small percent of those warnings.

Show full abstract

To better predict which static code warnings should not be ignored, we suggest that analysts need to look deeper into their algorithms to find choices that better improve the particulars of their specific problem. Specifically, we show here that effective predictors of such warnings can be created by methods that locally adjust the decision boundary (between actionable warnings and others). These methods yield a new high water-mark for recognizing actionable static code warnings. For eight open-source Java projects (cassandra, jmeter, commons, lucene-solr, maven, ant, tomcat, derby) we achieve perfect test results on 4/8 datasets and, overall, a median AUC (area under the true negatives, true positives curve) of 92%.

View on arXivView PDF

Code Implementations(1)

Unlicense
22HTML, Jupyter NotebookMar 6, 20224 years agoUnlicense

Similar Papers

Cite this paper

@article{yedida2022find,
  title  = {How to Find Actionable Static Analysis Warnings: A Case Study with FindBugs},
  author = {Rahul Yedida and Hong Jin Kang and Huy Tu and Xueqi Yang and David Lo and Tim Menzies},
  year   = {2022},
  eprint = {2205.10504},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.10504}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2205.10504.svg)](https://codeofpaper.com/paper/2205.10504)

Discussion