Title: Is refactoring a solution to resolve code smell?
Authors: Rajni Sehgal; Deepti Mehrotra; Renuka Nagpal
Addresses: Amity University, Uttar Pradesh, 110025, India ' Amity University, Uttar Pradesh, 110025, India ' Amity University, Uttar Pradesh, 110025, India
Abstract: In the software industry, systems are often enhanced to meet the requirements of the customer. During the evolution process, various flaws in the structure or design of the code, often known as code smells, are introduced, which might reduce the quality of the software system. Code smells can be removed by refactoring, which is one of the most important approaches for increasing the quality of a piece of software. In this study, twenty projects have been taken from the public repository, Github. Using the Eclipse-based tool Jdeodorant, code smells are recognised, and automated refactoring is applied to eliminate the code smells. An analysis is carried out that refactoring can remove one code smell, but it can also introduce other code.
Keywords: refactoring; code smell; GitHub; Jdeodorant; software quality; god class; feature envy; long method; duplicated code; type checking.
DOI: 10.1504/IJSSE.2022.127990
International Journal of System of Systems Engineering, 2022 Vol.12 No.4, pp.371 - 385
Received: 27 Jul 2021
Accepted: 18 Jan 2022
Published online: 03 Jan 2023 *