arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2103.04506cs.SE
收藏

技术债务检测工具缺乏共识

On the Lack of Consensus Among Technical Debt Detection Tools

Jason Lefever, Yuanfang Cai, Humberto Cervantes, Rick Kazman, Hongzhou Fang

摘要:

近年来开发了一套蓬勃发展的技术债务分析工具,包括研究工具和工业产品,如结构101,SonarQube和DV 8。这些工具中的每一个都使用它们自己的定义和度量来识别有问题的文件。但是,这些工具在它们识别为有问题的文件方面彼此一致的程度如何呢?如果这些工具报告的排名靠前的文件在很大程度上是一致的,那么我们可以有信心使用这些工具中的任何一个。否则,就会出现准确性的问题。在本文中,我们报告了一项实证研究的结果,分析了10个项目,使用多种工具。我们的研究结果表明:1)这些工具报告了非常不同的结果,即使是最常见的测量,如大小,复杂性,文件周期和包周期。2)这些工具在它们识别的问题文件集方面也有很大的不同,因为每个工具都实现了自己对“问题”的定义。在按大小标准化之后,工具识别的最有问题的文件集几乎没有重叠。3)我们的研究结果表明,基于代码的措施,而不是大小和复杂性,甚至没有适度相关的文件的变化倾向或错误倾向。相比之下,共同变化相关的措施表现更好。我们的研究结果表明,要识别具有真正技术债务的文件-那些经历过多更改或错误的文件-必须考虑共同更改信息。基于代码的措施在查明真正的债务方面基本上是无效的。最后,这项研究揭示了社区需要创建基准和数据集,以评估软件分析工具在常用措施方面的准确性。

英文摘要:

A vigorous and growing set of technical debt analysis tools have been developed in recent years -- both research tools and industrial products -- such as Structure 101, SonarQube, and DV8. Each of these tools identifies problematic files using their own definitions and measures. But to what extent do these tools agree with each other in terms of the files that they identify as problematic? If the top-ranked files reported by these tools are largely consistent, then we can be confident in using any of these tools. Otherwise, a problem of accuracy arises. In this paper, we report the results of an empirical study analyzing 10 projects using multiple tools. Our results show that: 1) these tools report very different results even for the most common measures, such as size, complexity, file cycles, and package cycles. 2) These tools also differ dramatically in terms of the set of problematic files they identify, since each implements its own definitions of "problematic". After normalizing by size, the most problematic file sets that the tools identify barely overlap. 3) Our results show that code-based measures, other than size and complexity, do not even moderately correlate with a file's change-proneness or error-proneness. In contrast, co-change-related measures performed better. Our results suggest that, to identify files with true technical debt -- those that experience excessive changes or bugs -- co-change information must be considered. Code-based measures are largely ineffective at pinpointing true debt. Finally, this study reveals the need for the community to create benchmarks and data sets to assess the accuracy of software analysis tools in terms of commonly used measures.

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

↑