arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2205.10504cs.SEcs.LG
收藏

如何找到可行的静态分析工具:使用FindBugs的案例研究

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

North Carolina State University(北卡罗来纳州立大学);Singapore Management University(新加坡管理大学);Meta Platforms, Inc.(Meta平台公司)

Rahul Yedida, Hong Jin Kang, Huy Tu, Xueqi Yang, David Lo, Tim Menzies

摘要:

自动生成的静态代码警告遭受大量的错误警报。因此,开发人员只对这些警告中的一小部分采取行动。为了更好地预测哪些静态代码警告不应该被忽略,我们建议分析师需要更深入地研究他们的算法,以找到更好地改善特定问题细节的选择。具体来说,我们在这里表明,有效的预测,这样的警告,可以创建本地调整的决策边界(之间的可操作的警告和其他)的方法。这些方法为识别可操作的静态代码警告提供了一个新的高水印。对于八个开源Java项目(cassandra,jmeter,commons,lucene-solr,maven,ant,tomcat,derby),我们在4/8个数据集上获得了完美的测试结果,总体而言,AUC(真阴性,真阳性曲线下面积)的中位数为92%。

英文摘要:

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. 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%.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑