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

软件代码质量测量:来自指标分布的启示

Software Code Quality Measurement: Implications from Metric Distributions

Siyuan Jin, Mianmian Zhang, Yekai Guo, Yuejiang He, Ziyuan Li, Bichao Chen, Bing Zhu, Yong Xia

AI总结:

本文针对代码质量指标缺乏一致评估标准的问题,提出基于分布的方法对单调性与非单调性指标进行统一评分,并在36,460个开源仓库上验证了评分对软件采用的可解释性。

摘要:

软件代码质量是一个包含三个维度的构念:可维护性、可靠性和功能性。尽管许多企业已将代码质量指标纳入其运营中,但评估这些指标仍缺乏一致的标准。我们将不同的指标分为两类:1)单调性指标,它们对代码质量产生一致的影响;2)非单调性指标,它们与代码质量缺乏一致的关系。为了一致地评估它们,我们提出了一种基于分布的方法来获得指标得分。我们的实证分析包括36,460个高质量开源软件(OSS)仓库及其来自SonarQube和CK的原始指标。评估得分在软件采用方面表现出很强的可解释性。我们的工作对代码质量的多维构念及其指标测量做出了贡献,为单调性和非单调性指标的一致测量提供了实践启示。

英文摘要:

Software code quality is a construct with three dimensions: maintainability, reliability, and functionality. Although many firms have incorporated code quality metrics in their operations, evaluating these metrics still lacks consistent standards. We categorized distinct metrics into two types: 1) monotonic metrics that consistently influence code quality; and 2) non-monotonic metrics that lack a consistent relationship with code quality. To consistently evaluate them, we proposed a distribution-based method to get metric scores. Our empirical analysis includes 36,460 high-quality open-source software (OSS) repositories and their raw metrics from SonarQube and CK. The evaluated scores demonstrate great explainability on software adoption. Our work contributes to the multi-dimensional construct of code quality and its metric measurements, which provides practical implications for consistent measurements on both monotonic and non-monotonic metrics.

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

↑