论文标题

纠正提交概率代码质量指标

The Corrective Commit Probability Code Quality Metric

论文作者

Amit, Idan, Feitelson, Dror G.

论文摘要

我们提出了代码质量指标,纠正提交概率(CCP),以衡量提交反映纠正性维护的概率。我们表明,该指标符合开发人员对质量,内容丰富和稳定的概念。通过将语言模型应用于提交消息来确定纠正措施。通过将语言模型应用于提交消息来确定纠正措施。我们计算了所有大型活跃GitHub项目的CCP(2019年至少有200个提交的项目为7,557个项目)。这导致创造了质量量表,这表明最低的10%的优质项目在修复错误上的努力比前10%的努力高了6倍。对项目属性的分析表明,较低的CCP(较高质量)与较小的文件,较低的耦合,使用JavaScript和C#之类的语言相关,而不是PHP和C ++,更少的开发人员,较低的开发人员,开发人员的流失,更好的入职和更好的生产率。除其他事项外,这些结果支持“质量是免费的”主张,并表明达到更高质量不需要更高的费用。

We present a code quality metric, Corrective Commit Probability (CCP), measuring the probability that a commit reflects corrective maintenance. We show that this metric agrees with developers' concept of quality, informative, and stable. Corrective commits are identified by applying a linguistic model to the commit messages. Corrective commits are identified by applying a linguistic model to the commit messages. We compute the CCP of all large active GitHub projects (7,557 projects with at least 200 commits in 2019). This leads to the creation of a quality scale, suggesting that the bottom 10% of quality projects spend at least 6 times more effort on fixing bugs than the top 10%. Analysis of project attributes shows that lower CCP (higher quality) is associated with smaller files, lower coupling, use of languages like JavaScript and C# as opposed to PHP and C++, fewer developers, lower developer churn, better onboarding, and better productivity. Among other things these results support the "Quality is Free" claim, and suggest that achieving higher quality need not require higher expenses.

扫码加入交流群

加入微信交流群

微信交流群二维码

扫码加入学术交流群,获取更多资源