Live Code Smell Detection of Data Clumps in an Integrated Development Environment

Nils Baumgartner, Firas Adleh, Elke Pulvermüller

2023

Abstract

Code smells in software systems create maintenance and extension challenges for developers. While many tools detect code smells, few provide refactoring suggestions. Some of the tools support live detection in an integrated development environment. We present a tool for the live detection of data clumps in Java with generated suggestions and semi-automatic refactoring. To achieve this, our research examines projects and their associated abstract syntax trees and analyzes types of variables. Thereby, we aim to detect data clumps, a type of code smells, and generate suggestions to counteract them. We implemented our approach to live data clumps detection as an IntelliJ integrated development environment application plugin. The live detection achieved a median of less than 0.5 s for the ArgoUML software project, which we analyzed as an example. From over 1500 investigated files, our approach detected 125 files with data clumps and that of CBSD (Code Bad Smell Detector) detected 97 files with data clumps. For both approaches, 92 of the files found were the same. We combined the manual steps for refactoring, resulting in a semi-automatic elimination of data clumps.

Download


Paper Citation


in Harvard Style

Baumgartner N., Adleh F. and Pulvermüller E. (2023). Live Code Smell Detection of Data Clumps in an Integrated Development Environment. In Proceedings of the 18th International Conference on Evaluation of Novel Approaches to Software Engineering - Volume 1: ENASE, ISBN 978-989-758-647-7, SciTePress, pages 64-76. DOI: 10.5220/0011727500003464


in Bibtex Style

@conference{enase23,
author={Nils Baumgartner and Firas Adleh and Elke Pulvermüller},
title={Live Code Smell Detection of Data Clumps in an Integrated Development Environment},
booktitle={Proceedings of the 18th International Conference on Evaluation of Novel Approaches to Software Engineering - Volume 1: ENASE,},
year={2023},
pages={64-76},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0011727500003464},
isbn={978-989-758-647-7},
}


in EndNote Style

TY - CONF

JO - Proceedings of the 18th International Conference on Evaluation of Novel Approaches to Software Engineering - Volume 1: ENASE,
TI - Live Code Smell Detection of Data Clumps in an Integrated Development Environment
SN - 978-989-758-647-7
AU - Baumgartner N.
AU - Adleh F.
AU - Pulvermüller E.
PY - 2023
SP - 64
EP - 76
DO - 10.5220/0011727500003464
PB - SciTePress