Finding patterns in static analysis alerts: improving actionable alert ranking

Quinn Hanam, Lin Tan, Reid Holmes, Patrick Lam
<span title="">2014</span> <i title="ACM Press"> <a target="_blank" rel="noopener" href="https://fatcat.wiki/container/vjelrzmdcvaydenhyicylh7bwa" style="color: black;">Proceedings of the 11th Working Conference on Mining Software Repositories - MSR 2014</a> </i> &nbsp;
Static analysis (SA) tools that find bugs by inferring programmer beliefs (e.g., FindBugs) are commonplace in today's software industry. While they find a large number of actual defects, they are often plagued by high rates of alerts that a developer would not act on (unactionable alerts) because they are incorrect, do not significantly affect program execution, etc. High rates of unactionable alerts decrease the utility of static analysis tools in practice. We present a method for
more &raquo; ... ng actionable and unactionable alerts by finding alerts with similar code patterns. To do so, we create a feature vector based on code characteristics at the site of each SA alert. With these feature vectors, we use machine learning techniques to build an actionable alert prediction model that is able to classify new SA alerts. We evaluate our technique on three subject programs using the FindBugs static analysis tool and the Faultbench benchmark methodology. For a developer inspecting the top 5% of all alerts for three sample projects, our approach is able to identify 57 of 211 actionable alerts, which is 38 more than the FindBugs priority measure. Combined with previous actionable alert identification techniques, our method finds 75 actionable alerts in the top 5%, which is four more actionable alerts (a 6% improvement) than previous actionable alert identification techniques.
<span class="external-identifiers"> <a target="_blank" rel="external noopener noreferrer" href="https://doi.org/10.1145/2597073.2597100">doi:10.1145/2597073.2597100</a> <a target="_blank" rel="external noopener" href="https://dblp.org/rec/conf/msr/HanamTHL14.html">dblp:conf/msr/HanamTHL14</a> <a target="_blank" rel="external noopener" href="https://fatcat.wiki/release/qeln4vvumrgkvazh4emkabf724">fatcat:qeln4vvumrgkvazh4emkabf724</a> </span>
<a target="_blank" rel="noopener" href="https://web.archive.org/web/20160623043945/http://patricklam.ca/papers/14.msr.saa.pdf" title="fulltext PDF download" data-goatcounter-click="serp-fulltext" data-goatcounter-title="serp-fulltext"> <button class="ui simple right pointing dropdown compact black labeled icon button serp-button"> <i class="icon ia-icon"></i> Web Archive [PDF] <div class="menu fulltext-thumbnail"> <img src="https://blobs.fatcat.wiki/thumbnail/pdf/5a/ef/5aef9705891b5c9a8ccf1d1e237e4b16bb6f45d4.180px.jpg" alt="fulltext thumbnail" loading="lazy"> </div> </button> </a> <a target="_blank" rel="external noopener noreferrer" href="https://doi.org/10.1145/2597073.2597100"> <button class="ui left aligned compact blue labeled icon button serp-button"> <i class="external alternate icon"></i> acm.org </button> </a>