Code-Smells Identification by using PSO Approach
G. Ramesh1, Ch. Mallikarjuna Rao2

1Dr. G. Ramesh, Associate Professor, Department of Computer Science and Engineering, Gokaraju Rangaraju Institute of Engineering and Technology, Bachupally, Hyderabad (Telangana), India.
2Dr. Ch. Mallikarjuna Rao, Professor in CSE Department, Gokaraju Rangaraju Institute of Engineering and Technology, Bachupally, Hyderabad (Telangana), India.

Manuscript received on 24 September 2018 | Revised Manuscript received on 30 September 2018 | Manuscript published on 30 November 2018 | PP: 323-326 | Volume-7 Issue-4, November 2018 | Retrieval Number: E1852017519©BEIESP
Open Access | Ethics and Policies | Cite | Mendeley | Indexing and Abstracting
© The Authors. Blue Eyes Intelligence Engineering and Sciences Publication (BEIESP). This is an open access article under the CC-BY-NC-ND license (http://creativecommons.org/licenses/by-nc-nd/4.0/)

Abstract: Code-smell defines the smells which arise in coding part of the software development life cycle. It is very crucial to detect smells in software projects. If smells are detected earlier then the possibility of occurrence of errors, faults will be reduced. Hence, quality of the software is improved. The existing work used Bayesian approaches, manual approaches and search-based approaches to detect smells. These approaches lack in getting optimization solutions in detecting process. So, paper makes use of one of the popular optimization technique called Particle Swarm Optimization (PSO) for detecting the smells in programming part. The technique shows how intelligently the smells are detected and mainly concentrated on five types of smells namely Long Methods, Long Parameters, Large Classes, Duplicated Codes, and Primitive Obsessions. Implementation of this technique is, considering source-code of any software applications or programs and injecting PSO technique into the system. Here, PSO has trained to detect five types of smells whenever their appear in the source-code. Detecting the smells in initial stages of the project gives best performance of the software, and in other hand quality of the software is achieved. Experimental results are shown by using PSO technique, where searching time will be less consumed and accuracy of the system is gained.
Keywords: Code-Smells, Duplicated Codes, Software Quality, PSO.

Scope of the Article: Software Engineering Methodologies