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

解密现代代码审查中的重构分支动态:基于 Qt 的实证研究

Deciphering Refactoring Branch Dynamics in Modern Code Review: An Empirical Study on Qt

Eman Abdullah AlOmar

AI总结:

本研究通过定量与定性分析 Qt 项目中 2,154 次审查,揭示了 Refactor 分支中重构代码审查的流程、开发者关注点及面临的挑战,并构建了包含 12 项审查标准的分类体系。

摘要:

背景:现代代码审查是工业和开源项目中广泛采用的技术,旨在提高软件质量、分享知识,并确保符合编码标准和指南。尽管代码审查在一般性挑战、最佳实践、结果和社会技术方面得到了广泛研究,但鲜有研究关注重构是如何被审查的,以及开发者在审查 Refactor 分支中的重构代码时优先考虑什么。目标:旨在理解 Refactor 分支中重构变更的审查过程,并识别开发者在审查该分支代码时关注的内容。方法:本研究通过定量和定性分析,理解开发者决定接受或拒绝重构代码提交的主要标准,并识别该过程中固有的挑战。结果:通过分析 Qt 开源项目中 2,154 次重构与非重构审查,我们发现涉及 Refactor 分支重构的审查在代码审查工作量方面解决时间显著更短。此外,与其他分支相比,Refactor 分支中开发者意图的文档记录明显稀少。进一步,通过对大量重构代码审查讨论的主题分析,我们构建了一个包含 12 项重构审查标准的综合分类体系。

英文摘要:

Context: Modern code review is a widely employed technique in both industrial and open-source projects, serving to enhance software quality, share knowledge, and ensure compliance with coding standards and guidelines. While code review is extensively studied for its general challenges, best practices, outcomes, and socio-technical aspects, little attention has been paid to how refactoring is reviewed and what developers prioritize when reviewing refactored code in the Refactor branch. Objective: The goal is to understand the review process for refactoring changes in the Refactor branch and to identify what developers care about when reviewing code in this branch. Method: In this study, we present a quantitative and qualitative examination to understand the main criteria developers use to decide whether to accept or reject refactored code submissions and identify the challenges inherent in this process. Results: Analyzing 2,154 refactoring and non-refactoring reviews across Qt open-source projects, we find that reviews involving refactoring from the Refactor branch take significantly less time to resolve in terms of code review efforts. Additionally, documentation of developer intent is notably sparse within the Refactor branch compared to other branches. Furthermore, through thematic analysis of a substantial sample of refactoring code review discussions, we construct a comprehensive taxonomy consisting of 12 refactoring review criteria.

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

↑