Download PDFOpen PDF in browser

On Transfer Learning in Code Smells Detection

EasyChair Preprint no. 7717

7 pagesDate: April 3, 2022


The incidence of code smells is often associated with software quality degradation. Several studies present the importance of detecting and tackling the incidence of smells in the source code. However, existing technologies to detect code smells are dependent on the programming language. Consequently, several programming languages are largely employed by the software community without proper technologies code smell detection. This paper investigates the use of transfer learning to detect code smells in different programming languages. We selected five programming languages among the ten most used languages according to \textit{StackOverflow}: Java, C\#, C++, Python, and JavaScript. We selected open-source projects to obtain the datasets for training and testing. Results indicate high levels of effectiveness in detecting Complex Methods from other programming languages through transfer learning models, except for Python. This finding can help developers and researchers to apply the same code smell detection strategies in different programming languages. The results also indicate that the particular behavior observed with Python is partially due to key structural differences in this programming language.

Keyphrases: code smells, deep learning, Transfer Learning

BibTeX entry
BibTeX does not have the right entry for preprints. This is a hack for producing the correct reference:
  author = {Moabson Ramos and Rafael de Mello and Baldoino Fonseca},
  title = {On Transfer Learning in Code Smells Detection},
  howpublished = {EasyChair Preprint no. 7717},

  year = {EasyChair, 2022}}
Download PDFOpen PDF in browser