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

代码所有权:原则、差异及其与软件质量的关联

Code Ownership: The Principles, Differences, and Their Associations with Software Quality

Patanamon Thongtanunam, Chakkrit Tantithamthavorn

AI总结:

本文研究了基于提交和基于行的代码所有权近似在开发者集合、所有权值及专业知识水平上的差异,发现基于提交的近似与软件质量关联更强,建议分别将其用于质量改进和问责目的。

摘要:

代码所有权——对软件组件所有权程度的近似——是质量改进计划中使用的重要软件度量之一。然而,先前的研究提出了不同的代码所有权近似变体。但是,关于代码所有权近似的差异及其与软件质量的关联,人们知之甚少。在本文中,我们研究了常用所有权近似(即基于提交和基于行)在开发者集合、近似代码所有权值和专业知识水平方面的差异。然后,我们分析了每种代码所有权近似与缺陷倾向的关联。通过对跨越真实世界开源软件系统的25个版本进行的实证研究,我们发现基于提交和基于行的所有权近似产生了不同的开发者集合、不同的代码所有权值以及不同的主要开发者集合。此外,我们发现基于提交的近似与软件质量的关联比基于行的近似更强。基于我们的分析,我们建议将基于行的代码所有权用于问责目的(例如,作者归属、知识产权),而基于提交的代码所有权应用于快速修复错误和制定质量改进计划。

英文摘要:

Code ownership -- an approximation of the degree of ownership of a software component -- is one of the important software measures used in quality improvement plans. However, prior studies proposed different variants of code ownership approximations. Yet, little is known about the difference in code ownership approximations and their association with software quality. In this paper, we investigate the differences in the commonly used ownership approximations (i.e., commit-based and line-based) in terms of the set of developers, the approximated code ownership values, and the expertise level. Then, we analyze the association of each code ownership approximation with the defect-proneness. Through an empirical study of 25 releases that span real-world open-source software systems, we find that commit-based and line-based ownership approximations produce different sets of developers, different code ownership values, and different sets of major developers. In addition, we find that the commit-based approximation has a stronger association with software quality than the line-based approximation. Based on our analysis, we recommend line-based code ownership be used for accountability purposes (e.g., authorship attribution, intellectual property), while commit-based code ownership should be used for rapid bug-fixing and charting quality improvement plans.

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

↑