arrow
Return

Why Do Developers Reject Refactorings in Open-Source Projects?

delete2021-12-24
delete4
PRE
AI
J
Jevgenija Pantiuchina *
B
Bin Lin
F
Fiorella Zampetti
M
Massimiliano Di Penta
M
Michele Lanza
G
Gabriele Bavota
DOI:10.1145/3487062delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Refactoring operations are behavior-preserving changes aimed at improving source code quality. While refactoring is largely considered a good practice, refactoring proposals in pull requests are often rejected after the code review. Understanding the reasons behind the rejection of refactoring contributions can shed light on how such contributions can be improved, essentially benefiting software quality. This article reports a study in which we manually coded rejection reasons inferred from 330 refactoringrelated pull requests from 207 open-source Java projects. We surveyed 267 developers to assess their perceived prevalence of these identified rejection reasons, further complementing the reasons. Our study resulted in a comprehensive taxonomy consisting of 26 refactoring-related rejection reasons and 21 process-related rejection reasons. The taxonomy, accompanied with representative examples and highlighted implications, provides developers with valuable insights on how to ponder and polish their refactoring contributions, and indicates a number of directions researchers can pursue toward better refactoring recommenders.
Keywords:
Refactoring
empirical software engineering

Journal

A
ACM Transactions on Software Engineering and Methodology
IF:
6.2
Papers:
1.2K
Citations:
3.4K

Organization

U
Universita della Svizzera Italiana
Scholars:
3.3K
Papers: 2.8K
Citations: 3
University of Sannio cover
University of Sannio
Scholars:
2.3K
Papers: 2.2K
Citations: 2.3K
Cited Papers

Cited Papers

Automated Behavioral Testing of Refactoring Engines
err2013-02-01
err83
PREAI
errSoares, Gustavo; Gheyi, Rohit; Massoni, Tiago
errShare
errSave
Identification of Move Method Refactoring Opportunities
err2009-05-01
err274
PREAI
errTsantalis, Nikolaos; Chatzigeorgiou, Alexander
errShare
errSave
errShare
errSave
Fournier’s Gangrene: Management at a Regional Burn Center
err2008-01-01
err0
PREAI
errJeffrey R. Saffle; Stephen E. Morris; Linda Edelman
errShare
errSave
How We Refactor, and How We Know It
err2012-01-01
err327
PREAI
errMurphy-Hill, Emerson; Parnin, Chris; Black, Andrew P.
errShare
errSave
Effects of anxiolytic treatment on potentiated startle during aversive image anticipation
err2012-07-10
err0
PREAI
errDean T. Acheson; Murray B. Stein; Martin P. Paulus; Lakshmi Ravindran; Alan N. Simmons; James B. Lohr; Victoria B. Risbrough
errShare
errSave
Why Developers Refactor Source Code: A Mining-based Study
err2020-09-26
err34
errOAAI
errPantiuchina, Jevgenija; Zampetti, Fiorella; Scalabrino, Simone; Piantadosi, Valentina; Oliveto, Rocco; Bavota, Gabriele; Di Penta, Massimiliano
errShare
errSave
Maintaining postharvest quality and enhancing shelf-life of bell pepper (Capsicum annuum L.) using brassinosteroids: A novel approach
err2024-06-01
err0
PREAI
errSajeel Ahamad; Ram Asrey; B R Vinod; Nirmal Kumar Meena; M Menaka; Uma Prajapati; Vivek Saurabh
errShare
errSave
researcher View more