An Ontology-based Approach to Analyzing the Occurrence of Code Smells in Software

Luis Paulo da Silva Carvalho, Renato Novais, Laís do Nascimento Salvador, Manoel Gomes de Mendonça Neto

2017

Abstract

Code Smells indicate potential flaws in software design that can lead to costly consequences. To mitigate the bad effects of Code Smells, it is necessary to detect and fix defective code. Programmatic processing of Code Smells is not new. Previous works have focused on detection and representation to support the analysis of faulty software. However, such works are based on a syntactic operation, without taking advantage on semantic properties of the software. On the other hand, there are several ways to provide semantic support in software development as a whole. Ontologies, for example, have recently been usedl. The application of ontologies for inferring semantic mechanisms to aid software engineers in dealing with smells may be of great value. As little attention has been given to this, we propose an ontology-based approach to analyze the occurrence of Code Smells in software projects. First, we present a comprehensive ontology that is capable of representing Code Smells and their association with software projects. We also introduce a tool that can manipulate our ontology in order to provide processing of Code Smells as it mines software source-code. Finally, we conducted an initial evaluation of our approach in a real usage scenario with two large open-source software repositories.

Download


Paper Citation


in Harvard Style

Paulo da Silva Carvalho L., Novais R., do Nascimento Salvador L. and Gomes de Mendonça Neto M. (2017). An Ontology-based Approach to Analyzing the Occurrence of Code Smells in Software . In Proceedings of the 19th International Conference on Enterprise Information Systems - Volume 2: ICEIS, ISBN 978-989-758-248-6, pages 155-165. DOI: 10.5220/0006359901550165

in Bibtex Style

@conference{iceis17,
author={Luis Paulo da Silva Carvalho and Renato Novais and Laís do Nascimento Salvador and Manoel Gomes de Mendonça Neto},
title={An Ontology-based Approach to Analyzing the Occurrence of Code Smells in Software},
booktitle={Proceedings of the 19th International Conference on Enterprise Information Systems - Volume 2: ICEIS,},
year={2017},
pages={155-165},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0006359901550165},
isbn={978-989-758-248-6},
}


in EndNote Style

TY - CONF
JO - Proceedings of the 19th International Conference on Enterprise Information Systems - Volume 2: ICEIS,
TI - An Ontology-based Approach to Analyzing the Occurrence of Code Smells in Software
SN - 978-989-758-248-6
AU - Paulo da Silva Carvalho L.
AU - Novais R.
AU - do Nascimento Salvador L.
AU - Gomes de Mendonça Neto M.
PY - 2017
SP - 155
EP - 165
DO - 10.5220/0006359901550165