Software code smells and defects: an empirical investigation

Reuben Brown, Des Greer

Research output: Chapter in Book/Report/Conference proceedingConference contribution

66 Downloads (Pure)

Abstract

Code smells indicate weaknesses in software design that may slow down development or increase the risk of bugs or failures in the future. This paper aims to investigate the correlation of code smells with defects within classes. The method used uses a tool to automatically detect code smells in selected projects and then assesses the correlation of these to the number of defects found in the code. Most existing articles determine that software modules/classes with more smells tend to have more defects. However, while the experiments in this paper covering a range of languages agreed with this, the correlation was found to be weak. There remains a need for further investigation of the types of code smells that tend to indicate or predict defects occurring. Future work will perform more detailed experiments by investigating a larger quantity and variety of software systems as well as more granular studies into types of code smell and defects arising.

Original languageEnglish
Title of host publication18th Conference on Evaluation of Novel Approaches to Software Engineering - ENASE 2023: Proceedings
PublisherSciTePress
Pages570-580
Number of pages11
Volume1
ISBN (Print)9789897586477
DOIs
Publication statusPublished - 10 May 2023
Event18th International Conference on Evaluation of Novel Approaches to Software Engineering 2023 - Prague, Czech Republic
Duration: 24 Apr 202325 Apr 2023

Publication series

NameInternational Conference on Evaluation of Novel Approaches to Software Engineering: Proceedings
ISSN (Print)2184-4895

Conference

Conference18th International Conference on Evaluation of Novel Approaches to Software Engineering 2023
Abbreviated titleENASE 2023
Country/TerritoryCzech Republic
CityPrague
Period24/04/202325/04/2023

Fingerprint

Dive into the research topics of 'Software code smells and defects: an empirical investigation'. Together they form a unique fingerprint.

Cite this