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

CORRECT:基于跨项目和技术经验的GitHub中的代码评审员推荐

CORRECT: Code Reviewer Recommendation in GitHub Based on Cross-Project and Technology Experience

Mohammad Masudur Rahman, Chanchal K. Roy, Jason A. Collins

摘要:

同行代码评审在软件开发的早期阶段定位常见的编码规则违反和简单的逻辑错误,从而降低总体成本。然而,在GitHub中,为拉取请求识别适当的代码审查者是一项重要的任务,因为审查者识别的可靠信息通常不容易获得。在本文中,我们提出了一种代码评审推荐技术,不仅考虑了相关的跨项目工作历史(例如,外部库经验),而且还包括开发者在与拉取请求相关联的某些专门技术方面的经验,用于确定她作为潜在代码审查者的专业知识。我们首先激励我们的技术使用探索性研究与10个商业项目和10个相关的库外部的这些项目。在10个商业项目和6个开源项目的17,115个pull请求上的实验表明,该方法在代码评审员推荐中的推荐准确率为85%~ 92%,精确率约为86%,召回率为79%~ 81%,具有很好的应用前景。与最先进的技术相比,也验证了实证研究结果和我们的推荐技术的优越性。

英文摘要:

Peer code review locates common coding rule violations and simple logical errors in the early phases of software development, and thus reduces overall cost. However, in GitHub, identifying an appropriate code reviewer for a pull request is a non-trivial task given that reliable information for reviewer identification is often not readily available. In this paper, we propose a code reviewer recommendation technique that considers not only the relevant cross-project work history (e.g., external library experience) but also the experience of a developer in certain specialized technologies associated with a pull request for determining her expertise as a potential code reviewer. We first motivate our technique using an exploratory study with 10 commercial projects and 10 associated libraries external to those projects. Experiments using 17,115 pull requests from 10 commercial projects and six open source projects show that our technique provides 85%--92% recommendation accuracy, about 86% precision and 79%--81% recall in code reviewer recommendation, which are highly promising. Comparison with the state-of-the-art technique also validates the empirical findings and the superiority of our recommendation technique.

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

↑