arrow
Return

Model level code smell detection using EGAPSO based on similarity measures

delete2018-09-01
delete8
delete
OA
AI
G
G. Saranya
H
H. Khanna Nehemiah *
A
A. Kannan
N
Nithya, V.
DOI:10.1016/j.aej.2017.07.006delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
Software maintenance is an essential part of any software that finds its use in the day-to-day activities of any organization. During the maintenance phase bugs detected must be corrected and the software must evolve with respect to changing requirements without ripple effects. Software maintenance is a cumbersome process if code smells exist in the software. The impact of poor design is code smells. In code smells detection, majority of the existing approaches are rule based, where a rule represents the combination of metrics and threshold. In rule based approach, defining the rules that detect the code smells are time consuming because identifying the correct threshold value is a tedious task, which can be fixed only through trial and error method. To address this issue, in this work Euclidean distance based Genetic Algorithm and Particle Swarm Optimization (EGAPSO) is used. Instead of relying on threshold value, this approach detects all code smells based on similarity between the system under study and the set of defect examples, where the former is the initial model and the latter is the base example. The approach is tested on the open source projects, namely Gantt Project and Log4j for identifying the five code smells namely Blob, Functional Decomposition, Spaghetti Code, Data Class and Feature Envy. Finally, the approach is compared with code smell detection using Genetic Algorithm (GA), DEtection and CORrection (DECOR), Parallel Evolutionary Algorithm (PEA) and Multi-Objective Genetic Programming (MOGP). The result of EGAPSO proves to be effective when compared to other code smell detection approaches. (C) 2017 Faculty of Engineering, Alexandria University. Production and hosting by Elsevier B.V.
Keywords:
Software maintenance
Code smell
Software metrics
Search based software engineering
Euclidean distance
Open source software
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

Alexandria Engineering Journal cover
Alexandria Engineering Journal
IF:
6.8
Papers:
6.3K
Citations:
2.6W

Organization

A
Anna University Chennai
Scholars:
2.4K
Papers: 2.5K
Citations: 2
A
Anna University
Scholars:
7.0K
Papers: 6.4K
Citations: 32