Applying software metric thresholds for detection of bad smells

  • Priscila P. Souza UFMG
  • Bruno L. Sousa UFMG
  • Kecia A. A. M. Ferreira CEFET-MG
  • Mariza A. S. Bigonha UFMG

Resumo


Software metrics can be an effective measurement tool to assess the quality of software. In the literature, there are a lot of software metrics applicable to systems implemented in different paradigms like Objects Oriented Programming (OOP). To guide the use of these metrics in the evaluation of the quality of software systems, it is important to define their thresholds. The aim of this study is to investigate the effectiveness of the thresholds in the evaluation of the quality of object oriented software. To do that, we used a threshold catalog of 18 software metrics derived from 100 software systems to define detection strategies for five bad smells. They are: Large Class, Long Method, Data Class, Feature Envy and Refused Bequest. We investigate the effectiveness of the thresholds in detection analysis of 12 software systems using these strategies. The results obtained by the proposed strategies were compared with the results obtained by the tools JDeodorant and JSPiRIT, used to identify bad smells. This study shows that the metric thresholds were significantly effective in supporting the detection of bad smells.
Palavras-chave: thresholds, software quality, software metrics, bad smells detection
Publicado
18/09/2017
SOUZA, Priscila P.; SOUSA, Bruno L.; FERREIRA, Kecia A. A. M.; BIGONHA, Mariza A. S.. Applying software metric thresholds for detection of bad smells. In: SIMPÓSIO BRASILEIRO DE COMPONENTES, ARQUITETURAS E REUTILIZAÇÃO DE SOFTWARE (SBCARS), 11. , 2017, Fortaleza/CE. Anais [...]. Porto Alegre: Sociedade Brasileira de Computação, 2017 . p. 51–60.