arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1912.02179cs.SE
收藏

Apache开源项目中静态分析警告演化及PMD对软件质量影响的纵向研究

A Longitudinal Study of Static Analysis Warning Evolution and the Effects of PMD on Software Quality in Apache Open Source Projects

Alexander Trautsch, Steffen Herbold, Jens Grabowski

摘要:

自动化静态分析工具(ASAT)已经成为软件开发工作流程的主要部分。根据生成的警告,即,更改警告中指示的代码,最迟应该是代码评审阶段的一部分。尽管这是软件开发中的最佳做法,但仍缺乏关于反卫星武器在野外使用的实证研究。在这项工作中,我们希望通过PMD作为ASAT及其在开源项目中的使用的例子来研究软件中的ASAT警告趋势。我们分析了54个项目的提交历史(总共112,266次提交),考虑了193个PMD规则和61个PMD版本。我们调查的趋势,反卫星武器警告超过17年的选定的研究对象有关的变化,警告类型,反卫星武器的使用的短期和长期的影响,并在警告的严重程度的变化。我们发现,ASAT警告的大规模全球变化主要是由于大括号和命名约定的编码风格变化。我们还发现,令人惊讶的是,项目构建过程中PMD的存在对每行代码中警告数量的警告删除趋势的影响很小,并且在统计上不显着。无论如何,如果我们考虑缺陷密度作为外部质量的代表,如果PMD存在于我们研究对象的构建配置中,我们会看到积极的影响。

英文摘要:

Automated static analysis tools (ASATs) have become a major part of the software development workflow. Acting on the generated warnings, i.e., changing the code indicated in the warning, should be part of, at latest, the code review phase. Despite this being a best practice in software development, there is still a lack of empirical research regarding the usage of ASATs in the wild. In this work, we want to study ASAT warning trends in software via the example of PMD as an ASAT and its usage in open source projects. We analyzed the commit history of 54 projects (with 112,266 commits in total), taking into account 193 PMD rules and 61 PMD releases. We investigate trends of ASAT warnings over up to 17 years for the selected study subjects regarding changes of warning types, short and long term impact of ASAT use, and changes in warning severities. We found that large global changes in ASAT warnings are mostly due to coding style changes regarding braces and naming conventions. We also found that, surprisingly, the influence of the presence of PMD in the build process of the project on warning removal trends for the number of warnings per lines of code is small and not statistically significant. Regardless, if we consider defect density as a proxy for external quality, we see a positive effect if PMD is present in the build configuration of our study subjects.

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

↑