Building empirical support for automated code smell detection
Authors:
Open Access
- 16 September 2010
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 1-10
Abstract
Identifying refactoring opportunities in software systems is an important activity in today's agile development environments. The concept of code smells has been proposed to characterize different types of design shortcomings in code. Additionally, metric-based detection algorithms claim to identify the "smelly" components automatically. This paper presents results for an empirical study performed in a commercial environment. The study investigates the way professional software developers detect god class code smells, then compares these results to automatic classification. The results show that, even though the subjects perceive detecting god classes as an easy task, the agreement for the classification is low. Misplaced methods are a strong driver for letting subjects identify god classes as such. Earlier proposed metric-based detection approaches performed well compared to the human classification. These results lead to the conclusion that an automated metric-based p re-selection decreases the effort spent on manual code inspections. Automatic detection accompanied by a manual review increases the overall confidence in the results of metric-based classifiersKeywords
Funding Information
- Division of Computing and Communication Foundations (CCF 0916699)
This publication has 11 references indexed in Scilit:
- The evolution and impact of code smells: A case study of two open source systems2009
- DECOR: A Method for the Specification and Detection of Code and Design SmellsIEEE Transactions on Software Engineering, 2009
- A catalogue of lightweight visualizations to support code smell inspection2008
- Drivers for software refactoring decisions2006
- Subjective evaluation of software evolvability using code smells: An empirical studyEmpirical Software Engineering, 2006
- An experiment on subjective evolvability evaluation of object-oriented software: explaining factors and interrater agreement2005
- Adaptive Detection of Design FlawsElectronic Notes in Theoretical Computer Science, 2005
- Product Metrics for Automatic Identification of "Bad Smell" Design Problems in Java Source-Code2005
- Testing For Normality2002
- The WyCash portfolio management systemACM SIGPLAN OOPS Messenger, 1992