Local and global feature based explainable feature envy detection

Xin Yin, Chongyang Shi*, Shuxin Zhao

*此作品的通讯作者

科研成果: 书/报告/会议事项章节会议稿件同行评审

10 引用 (Scopus)

摘要

Code smell detection can help developers identify position of code smell in projects and enhance the quality of software system. Usually codes with similar semantic relationships have greater code dependencies, and most code smell detection methods ignore dependencies relationships within the source code. Thus, their detection results may be heavily influenced by inadequate code feature, which can lead to some code smell not being detected. In addition, existing methods cannot explain the correlation between detection results and code information. However, an explainable result can help developers make better judgments on code smell reconstruction. Accordingly, in this paper, we propose a local and global feature based explainable approach to detecting feature envy, one of the most common code smells. For the model to make the most of code information, we design different representation models for global code and local code respectively to extract different feature envy features, and automatically combine these features that are beneficial in terms of detection accuracy. We further design a code semantic dependency (CSD) to make the detection result easy to explain. The evaluation results of seven manual building code smell projects and three real projects show that the proposed approach improves on the state-of-the-art in detecting feature envy and boosting the explainability of results.

源语言英语
主期刊名Proceedings - 2021 IEEE 45th Annual Computers, Software, and Applications Conference, COMPSAC 2021
编辑W. K. Chan, Bill Claycomb, Hiroki Takakura, Ji-Jiang Yang, Yuuichi Teranishi, Dave Towey, Sergio Segura, Hossain Shahriar, Sorel Reisman, Sheikh Iqbal Ahamed
出版商Institute of Electrical and Electronics Engineers Inc.
942-951
页数10
ISBN(电子版)9781665424639
DOI
出版状态已出版 - 7月 2021
活动45th IEEE Annual Computers, Software, and Applications Conference, COMPSAC 2021 - Virtual, Online, 西班牙
期限: 12 7月 202116 7月 2021

出版系列

姓名Proceedings - 2021 IEEE 45th Annual Computers, Software, and Applications Conference, COMPSAC 2021

会议

会议45th IEEE Annual Computers, Software, and Applications Conference, COMPSAC 2021
国家/地区西班牙
Virtual, Online
时期12/07/2116/07/21

指纹

探究 'Local and global feature based explainable feature envy detection' 的科研主题。它们共同构成独一无二的指纹。

引用此