Use este identificador para citar o ir al link de este elemento: http://hdl.handle.net/1843/JCES-AREGGR
Tipo: Dissertação de Mestrado
Título: On the evaluation of code smells and detection tools
Autor(es): Thanis Fernandes Paiva
primer Tutor: Eduardo Magno Lages Figueiredo
primer miembro del tribunal : Humberto Torres Marques Neto
Segundo miembro del tribunal: Marco Tulio de Oliveira Valente
Resumen: Code smells are code fragments that can hinder the evolution and maintenance of software systems. Their detection is a challenge for developers and their informal definition leads to the implementation of multiple detection techniques and tools. This paper investigates the presence and evolution of code smells in two software systems, namely MobileMedia and Health Watcher. We also evaluated and compared four code smell detection tools, namely inFusion, JDeodorant, PMD, and JSpIRIT, using five open source projects, namely ANTLR, ArgoUML, JFreeChart, JSPWiki, and JUnit. The tools were applied to all seven open source projects to calculate agreement and accuracy of the tools. We calculated the recall and precision of each tool in the detection of three code smells: God Class, God Method, and Feature Envy. In order to calculate the recall and precision of the tools, we created code smell reference lists by manually analyzing the source code and also using an automatic approach. Agreement was calculated among tools and between pairs of tools, considering the percentage agreement, chance corrected agreement, non-occurrence, and occurrence agreement. The results were analyzed to answer research questions related to the evolution of code smells and comparison of detection tools in terms of recall, precision, and agreement. Our main findings include the fact that, in general, code smells are present from the moment of creation of a class or method in 74.4% of the cases of MobileMedia and 87.5% of Health Watcher. We also found that the evaluated tools present different recall and precision values. However, for God Class and Feature Envy, inFusion has the lowest recall and highest precision, while JDeodorant has the lowest precision for God Class and God Method in all target systems. Considering the agreement, we found high averages for percentage, chance corrected, and non-occurrence agreement of over 90%, confirming that there is high agreement on classes and methods without code smells, regardless of differences in the detection techniques. On the other hand, we found lower values for occurrence agreement between pairs of tools, ranging from 0.38% to 64.56%, confirming that regardless of similarities in the detection techniques, each tool reports very different sets of classes and methods as code smells.
Asunto: Code smells
Ferramentas Computação
Computação
Qualidade Software
Idioma: Inglês
Editor: Universidade Federal de Minas Gerais
Sigla da Institución: UFMG
Tipo de acceso: Acesso Aberto
URI: http://hdl.handle.net/1843/JCES-AREGGR
Fecha del documento: 11-ago-2017
Aparece en las colecciones:Dissertações de Mestrado

archivos asociados a este elemento:
archivo Descripción TamañoFormato 
thanis_paiva.pdf1.49 MBAdobe PDFVisualizar/Abrir


Los elementos en el repositorio están protegidos por copyright, con todos los derechos reservados, salvo cuando es indicado lo contrario.