Artigo em revista científica Q1
Code smells detection and visualization: A systematic literature review
José Pereira dos Reis (Pereira dos Reis, J.); Fernando Brito e Abreu (Brito e Abreu, F.); Glauco Carneiro (Carneiro, G.); Craig Anslow (Anslow, C.);
Título Revista
Archives of Computational Methods in Engineering
Ano (publicação definitiva)
2022
Língua
Inglês
País
Estados Unidos da América
Mais Informação
Web of Science®

N.º de citações: 19

(Última verificação: 2024-11-20 22:57)

Ver o registo na Web of Science®


: 1.0
Scopus

N.º de citações: 26

(Última verificação: 2024-11-19 12:05)

Ver o registo na Scopus


: 1.2
Google Scholar

N.º de citações: 61

(Última verificação: 2024-11-18 14:38)

Ver o registo no Google Scholar

Abstract/Resumo
Context: Code smells (CS) tend to compromise software quality and also demand more effort by developers to maintain and evolve the application throughout its life-cycle. They have long been cataloged with corresponding mitigating solutions called refactoring operations. Objective: This SLR has a twofold goal: the first is to identify the main code smells detection techniques and tools discussed in the literature, and the second is to analyze to which extent visual techniques have been applied to support the former. Method: Over 83 primary studies indexed in major scientific repositories were identified by our search string in this SLR. Then, following existing best practices for secondary studies, we applied inclusion/exclusion criteria to select the most relevant works, extract their features and classify them. Results: We found that the most commonly used approaches to code smells detection are search-based (30.1%), and metric-based (24.1%). Most of the studies (83.1%) use open-source software, with the Java language occupying the first position (77.1%). In terms of code smells, God Class (51.8%), Feature Envy (33.7%), and Long Method (26.5%) are the most covered ones. Machine learning techniques are used in 35% of the studies. Around 80% of the studies only detect code smells, without providing visualization techniques. In visualization-based approaches, several methods are used, such as city metaphors, 3D visualization techniques. Conclusions: We confirm that the detection of CS is a non-trivial task, and there is still a lot of work to be done in terms of: reducing the subjectivity associated with the definition and detection of CS; increasing the diversity of detected CS and of supported programming languages; constructing and sharing oracles and datasets to facilitate the replication of CS detection and visualization techniques validation experiments.
Agradecimentos/Acknowledgements
This work was partially funded by the Portuguese Foundation for Science and Technology, under ISTAR’s projects UIDB/ 04466/2020 and UIDP/04466/2020.
Palavras-chave
Systematic literature review,Code smells,Code smells detection,Code smells visualization,Software quality,Software maintenance
  • Ciências da Computação e da Informação - Ciências Naturais
Registos de financiamentos
Referência de financiamento Entidade Financiadora
UIDP/04466/2020 Fundação para a Ciência e a Tecnologia
UIDB/04466/2020 Fundação para a Ciência e a Tecnologia
Projetos Relacionados

Esta publicação é um output do(s) seguinte(s) projeto(s):

Com o objetivo de aumentar a investigação direcionada para o cumprimento dos Objetivos do Desenvolvimento Sustentável para 2030 das Nações Unidas, é disponibilizada no Ciência-IUL a possibilidade de associação, quando aplicável, dos artigos científicos aos Objetivos do Desenvolvimento Sustentável. Estes são os Objetivos do Desenvolvimento Sustentável identificados pelo(s) autor(es) para esta publicação. Para uma informação detalhada dos Objetivos do Desenvolvimento Sustentável, clique aqui.