arrow
返回

Code-Smell Detection as a Bilevel Problem

delete2014-10-14
delete74
PRE
AI
D
Dilan Sahin *
Marouane Kessentini 封面图
Marouane Kessentini (Marouane Kessentini)
S
Slim Bechikh
Kalyanmoy Deb 封面图
Kalyanmoy Deb (Kalyanmoy Deb)
DOI:10.1145/2675067delete
delete原文链接
delete分享
delete收藏
摘要

摘要

En 中文
Code smells represent design situations that can affect the maintenance and evolution of software. They make the system difficult to evolve. Code smells are detected, in general, using quality metrics that represent some symptoms. However, the selection of suitable quality metrics is challenging due to the absence of consensus in identifying some code smells based on a set of symptoms and also the high calibration effort in determining manually the threshold value for each metric. In this article, we propose treating the generation of code-smell detection rules as a bilevel optimization problem. Bilevel optimization problems represent a class of challenging optimization problems, which contain two levels of optimization tasks. In these problems, only the optimal solutions to the lower-level problem become possible feasible candidates to the upper-level problem. In this sense, the code-smell detection problem can be treated as a bilevel optimization problem, but due to lack of suitable solution techniques, it has been attempted to be solved as a single-level optimization problem in the past. In our adaptation here, the upper-level problem generates a set of detection rules, a combination of quality metrics, which maximizes the coverage of the base of code-smell examples and artificial code smells generated by the lower level. The lower level maximizes the number of generated artificial code smells that cannot be detected by the rules produced by the upper level. The main advantage of our bilevel formulation is that the generation of detection rules is not limited to some code-smell examples identified manually by developers that are difficult to collect, but it allows the prediction of new code-smell behavior that is different from those of the base of examples. The statistical analysis of our experiments over 31 runs on nine open-source systems and one industrial project shows that seven types of code smells were detected with an average of more than 86% in terms of precision and recall. The results confirm the outperformance of our bilevel proposal compared to state-of-art code-smell detection techniques. The evaluation performed by software engineers also confirms the relevance of detected code smells to improve the quality of software systems.
Keyword:
Algorithms
Reliability
Search-based software engineering
software quality
code smells
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

Improving multi-objective code-smells correction using development history利用发展历史改进多目标代码气味校正
err2015-07-01
err52
PREAI
errOuni, Ali; Kessentini, Marouane; Sahraoui, Houari; Inoue, Katsuro; Hamdi, Mohamed Salah
err分享
err收藏
Crowdsmelling: A preliminary study on using collective knowledge in code smells detection
err2022-03-17
err8
PREAI
errdos Reis, Jose Pereira; Brito e Abreu, Fernando; Carneiro, Glauco de Figueiredo
err分享
err收藏
err分享
err收藏

期刊

A
ACM Transactions on Software Engineering and Methodology
IF:
6.2
论文数:
1.4K
被引数:
4.5K

机构

U
university of michigan system
学者数:
593
论文数: 1.5K
被引数: 6.3W
U
university of michigan
学者数:
5.5K
论文数: 2.1K
被引数: 4.3W
引用论文

引用论文

err分享
err收藏
学者 查看更多内容