4.6 Article

Mining Version Histories for Detecting Code Smells

期刊

IEEE TRANSACTIONS ON SOFTWARE ENGINEERING
卷 41, 期 5, 页码 462-489

出版社

IEEE COMPUTER SOC
DOI: 10.1109/TSE.2014.2372760

关键词

Code smells; mining software repositories; empirical studies

资金

  1. EU [FP7-ICT-2011-8, 317743]
  2. [CCF-1253837]
  3. [CCF-1218129]
  4. Direct For Computer & Info Scie & Enginr
  5. Division of Computing and Communication Foundations [1218129] Funding Source: National Science Foundation
  6. Division of Computing and Communication Foundations
  7. Direct For Computer & Info Scie & Enginr [1253837] Funding Source: National Science Foundation

向作者/读者索取更多资源

Code smells are symptoms of poor design and implementation choices that may hinder code comprehension, and possibly increase change-and fault-proneness. While most of the detection techniques just rely on structural information, many code smells are intrinsically characterized by how code elements change over time. In this paper, we propose Historical Information for Smell deTection (HIST), an approach exploiting change history information to detect instances of five different code smells, namely Divergent Change, Shotgun Surgery, Parallel Inheritance, Blob, and Feature Envy. We evaluate HIST in two empirical studies. The first, conducted on 20 open source projects, aimed at assessing the accuracy of HIST in detecting instances of the code smells mentioned above. The results indicate that the precision of HIST ranges between 72 and 86 percent, and its recall ranges between 58 and 100 percent. Also, results of the first study indicate that HIST is able to identify code smells that cannot be identified by competitive approaches solely based on code analysis of a single system's snapshot. Then, we conducted a second study aimed at investigating to what extent the code smells detected by HIST (and by competitive code analysis techniques) reflect developers' perception of poor design and implementation choices. We involved 12 developers of four open source projects that recognized more than 75 percent of the code smell instances identified by HIST as actual design/implementation problems.

作者

我是这篇论文的作者
点击您的名字以认领此论文并将其添加到您的个人资料中。

评论

主要评分

4.6
评分不足

次要评分

新颖性
-
重要性
-
科学严谨性
-
评价这篇论文

推荐

暂无数据
暂无数据