Bad smell detection using quality metrics and refactoring opportunities
- 21 February 2020
- journal article
- research article
- Published by Wiley in Journal of Software: Evolution and Process
- Vol. 32 (8)
Abstract
Bad smells are bad practices in developing software. These poor solutions significantly influence the understandability and maintainability of source code. Therefore, bad smell detection plays a vital role in the refactoring, maintaining, and measuring the quality of large and complex software systems. Researchers believe that bad smells should be precisely identified and addressed. However, bad smell detection is complicated by issues such as informal and inconsistent specifications of bad smells and high false positive rates in the detection process, all of which affect the success rate in detection. In this paper, we present a new method to detect bad smells in code by addressing the aforementioned issues. Our proposed method is a multi‐step process using software quality metrics and refactoring opportunities. In this method, after obtaining the bad smell formal specifications based on software metrics, we utilize them to achieve a set of candidates for each bad smell. Afterwards, each of the instances will be examined and compared with the corresponding refactoring situations specified for that bad smell. This examination strikes out the false positives created in the previous step. The evaluation of this method on four open‐source systems demonstrates the improved effectiveness of bad smell detection in code.Keywords
This publication has 55 references indexed in Scilit:
- Identification and application of Extract Class refactorings in object-oriented systemsJournal of Systems and Software, 2012
- An exploratory study of the impact of antipatterns on class change- and fault-pronenessEmpirical Software Engineering, 2011
- Identifying relevant studies in software engineeringInformation and Software Technology, 2011
- Code Bad Smells: a review of current knowledgeJournal of Software Maintenance and Evolution: Research and Practice, 2010
- From a domain analysis to the specification and detection of code and design smellsFormal Aspects of Computing, 2010
- Dependency oriented complexity metrics to detect rippling related design defectsACM SIGSOFT Software Engineering Notes, 2009
- An empirical study of the bad smells and class error probability in the post-release object-oriented system evolutionJournal of Systems and Software, 2007
- Lessons from applying the systematic literature review process within the software engineering domainJournal of Systems and Software, 2007
- Subjective evaluation of software evolvability using code smells: An empirical studyEmpirical Software Engineering, 2006
- CCFinder: a multilinguistic token-based code clone detection system for large scale source codeIEEE Transactions on Software Engineering, 2002