Work

Decision Tree for Smell Code Detection in Python: A Practical Implementation

Year: 2024
Type: conference-paper
Abstract: This article discusses the approach to detect code that falls under the category of code smells in the Python programming language. The methodology involves reading each line of code and subsequently analyzing whether the program contains code smells. The code analysis is performed using a model trained with decision tree and J48 algorithms. The aim of this research, apart from developing previous research, is also to improve code quality and reduce security risks. Several aspects considered in this research include the number of parameters within a class, unused variables, duplicated print statements, and the number of classes within a code program. The constructed model utilizing the decision tree algorithm is then implemented into a web-based system, where input code for smell code identification is in the form of files with the extension .py.
Language: English
Open Access status: bronze
OpenAlex ID: W4392173232
FWCI:
Cites: 6
Cited by:
Related to: 10