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

自动化代码审查:一项系统性文献综述

Automating Code Review: A Systematic Literature Review

Rosalia Tufano, Gabriele Bavota

AI总结:

本文通过系统性文献综述梳理119篇论文,分类代码审查自动化任务、底层技术与评估数据集,并指出当前局限和未来研究方向。

摘要:

代码审查是指评估团队成员编写的代码,以提高代码质量。实证研究记录了这种实践带来的好处,但它在开发人员时间方面也需要付出成本。因此,研究人员提出了自动化代码审查任务的技术和工具,例如审查者选择(即为给定的代码变更确定合适的审查者)或对给定变更的实际审查(即像人类审查者那样向贡献者推荐改进)。鉴于最近在该主题上发表了大量论文,研究人员和从业者可能难以全面了解最新技术水平。我们提出了一项系统性文献综述(SLR),涵盖119篇关于代码审查任务自动化的论文。我们提供:(i)文献中已自动化的代码审查任务的分类;(ii)用于自动化的底层技术概述,包括用于训练数据驱动技术的数据集;(iii)公开可用的技术及用于其评估的数据集,并描述通常为每项任务采用的评估指标。该SLR最后讨论了当前技术水平的局限性,并为未来研究方向提供了见解。

英文摘要:

Code Review consists in assessing the code written by teammates with the goal of increasing code quality. Empirical studies documented the benefits brought by such a practice that, however, has its cost to pay in terms of developers' time. For this reason, researchers have proposed techniques and tools to automate code review tasks such as the reviewers selection (i.e., identifying suitable reviewers for a given code change) or the actual review of a given change (i.e., recommending improvements to the contributor as a human reviewer would do). Given the substantial amount of papers recently published on the topic, it may be challenging for researchers and practitioners to get a complete overview of the state-of-the-art. We present a systematic literature review (SLR) featuring 119 papers concerning the automation of code review tasks. We provide: (i) a categorization of the code review tasks automated in the literature; (ii) an overview of the under-the-hood techniques used for the automation, including the datasets used for training data-driven techniques; (iii) publicly available techniques and datasets used for their evaluation, with a description of the evaluation metrics usually adopted for each task. The SLR is concluded by a discussion of the current limitations of the state-of-the-art, with insights for future research directions.

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

↑