首页 | 本学科首页   官方微博 | 高级检索  
     


Maintainability defects detection and correction: a multi-objective approach
Authors:Ali Ouni  Marouane Kessentini  Houari Sahraoui  Mounir Boukadoum
Affiliation:1. DIRO, Université de Montréal, Montréal, Canada
2. CS, Missouri University of Science and Technology, Rolla, USA
3. DI, Université du Québec à Montréal, Montréal, Canada
Abstract:Software defects often lead to bugs, runtime errors and software maintenance difficulties. They should be systematically prevented, found, removed or fixed all along the software lifecycle. However, detecting and fixing these defects is still, to some extent, a difficult, time-consuming and manual process. In this paper, we propose a two-step automated approach to detect and then to correct various types of maintainability defects in source code. Using Genetic Programming, our approach allows automatic generation of rules to detect defects, thus relieving the designer from a fastidious manual rule definition task. Then, we correct the detected defects while minimizing the correction effort. A correction solution is defined as the combination of refactoring operations that should maximize as much as possible the number of corrected defects with minimal code modification effort. We use the Non-dominated Sorting Genetic Algorithm (NSGA-II) to find the best compromise. For six open source projects, we succeeded in detecting the majority of known defects, and the proposed corrections fixed most of them with minimal effort.
Keywords:
本文献已被 SpringerLink 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号