首页> 外文期刊>Empirical Software Engineering >How does code style inconsistency affect pull request integration? An exploratory study on 117 GitHub projects
【24h】

How does code style inconsistency affect pull request integration? An exploratory study on 117 GitHub projects

机译:代码样式不一致如何影响请求请求集成?

获取原文
获取原文并翻译 | 示例
           

摘要

GitHub is a popular code platform that provides infrastructures to facilitate collaborative development. A Pull Request (PR) is one of the key ideas to support collaboration. Developers are encouraged to submit PRs to ask for the integration of their contributions. In practice, not all submitted PRs can be integrated into the codebase by project maintainers. Existing studies have investigated factors affecting PR integration. Nevertheless, the code style of PRs, which is largely considered by project maintainers, has not been deeply studied yet. In this paper, we performed an exploratory analysis on the effect of code style on PR integration in GitHub. We modeled the code style via the inconsistency between a submitted PR and the existing code in its target codebase. Such modeling makes our study not limited by a specific definition of code style. We conducted our experiments on 50,092 closed PRs in 117 Java projects. Our findings show that: (1) There indeed exists code style inconsistency between PRs and the codebase. (2) Several code style criteria on how to use spaces or indents, make comments, and write code lines with a suitable length, tend to show more inconsistency among PRs. (3) A PR that is consistent with the current code style tends to be merged into the codebase more easily. (4) A PR that violates the current code style is likely to take more time to get closed. Our study shows evidence to developers about how to deliver better contributions to facilitate efficient collaboration.
机译:GitHub是一个流行的代码平台,提供了促进协作开发的基础架构。拉取请求(PR)是支持协作的关键思想之一。鼓励开发人员提交PR,要求整合其贡献。实际上,项目维护者并不能将所有提交的PR都集成到代码库中。现有研究已经调查了影响PR整合的因素。然而,项目维护者主要考虑的PR的代码风格尚未得到深入研究。在本文中,我们对代码样式对GitHub中PR集成的影响进行了探索性分析。我们通过提交的PR和目标代码库中现有代码之间的不一致来对代码样式进行建模。这种建模使得我们的研究不受代码风格的特定定义的限制。我们在117个Java项目中对50092个已关闭的PR进行了实验。我们的发现表明:(1)PR和代码库之间确实存在代码风格不一致。 (2)关于如何使用空格或缩进,进行注释以及编写具有适当长度的代码行的几种代码样式标准,往往在PR之间表现出更多的不一致。 (3)与当前代码风格一致的PR往往更容易合并到代码库中。 (4)违反当前代码样式的PR可能需要更多时间才能关闭。我们的研究向开发人员展示了有关如何做出更好的贡献以促进有效协作的证据。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号