Does Code Quality Affect Pull Request Acceptance? An empirical study
Valentina Lenarduzzi, Vili Nikkola, Nyyti Saarim\"aki, Davide Taibi

TL;DR
This empirical study investigates whether code quality issues influence pull request acceptance in open-source projects, finding that code quality does not significantly affect acceptance decisions, with other factors like maintainer reputation being more influential.
Contribution
First empirical analysis to assess the impact of code quality on pull request acceptance, revealing that code quality issues do not significantly influence acceptance outcomes.
Findings
Code quality issues do not affect pull request acceptance.
Maintainer reputation and feature importance are more influential.
Study conducted on 28 Java open-source projects with 36K pull requests.
Abstract
Background. Pull requests are a common practice for contributing and reviewing contributions, and are employed both in open-source and industrial contexts. One of the main goals of code reviews is to find defects in the code, allowing project maintainers to easily integrate external contributions into a project and discuss the code contributions. Objective. The goal of this paper is to understand whether code quality is actually considered when pull requests are accepted. Specifically, we aim at understanding whether code quality issues such as code smells, antipatterns, and coding style violations in the pull request code affect the chance of its acceptance when reviewed by a maintainer of the project. Method. We conducted a case study among 28 Java open-source projects, analyzing the presence of 4.7 M code quality issues in 36 K pull requests. We analyzed further correlations by…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
