arrow
返回

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

delete2019-06-03
delete23
PRE
AI
W
Weiqin Zou
J
Jifeng Xuan
X
Xiaoyuan Xie
陈
陈振宇 (Zhenyu Chen) *
B
Baowen Xu
DOI:10.1007/s10664-019-09720-xdelete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
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.
Keyword:
Pull request
Code style inconsistency
Exploratory study
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

期刊

Empirical Software Engineering 封面图
Empirical Software Engineering
IF:
3.6
论文数:
2.0K
被引数:
5.3K

机构

N
nanjing university
学者数:
7.8W
论文数: 5.6W
被引数: 87
W
wuhan university
学者数:
8.1W
论文数: 5.8W
被引数: 70
引用论文

引用论文

Determination of nafcillin by room temperature phosphorescence
err2000-09-01
err0
PREAI
errJosé A. Murillo Pulgarı́n; Aurelia Alañón Molina; Marı́a Teresa Alañón Pardo
err分享
err收藏
Estimation of phase derivative from a single fringe pattern using Riesz transforms
err2017-04-12
err0
PREAI
errYassine Tounsi; Sara Zada; Desire Muhire; Ahmed Siari; Abdelkrim Nassim
err分享
err收藏
Programmed sample delivery on a pressurized paper
err2014-10-24
err0
errOAAI
errJoong Ho Shin; Juhwan Park; Seung Hoon Kim; Je-Kyun Park
err分享
err收藏
Thermodynamic and Artificial Intelligence Approaches of H2S Solubility in Some Imidazolium-Based Ionic Liquids
err2023-01-30
err0
PREAI
errMorteza Esfandyari; Mahdi Koolivand Salooki; Mohammad Shokouhi; Jafar Sadeghzadeh Ahari; Niloufar Fatourehchi
err分享
err收藏
err分享
err收藏
Recommendations for the characterization of porous solids (Technical Report)多孔固体表征的建议 (技术报告)
err2009-01-01
err0
errOAAI
errJ. Rouquerol; D. Avnir; C. W. Fairbridge; D. H. Everett; J. M. Haynes; N. Pernicone; J. D. F. Ramsay; K. S. W. Sing; K. K. Unger
err分享
err收藏
学者 查看更多内容