首页> 外文会议>Congress on Engineering and Technologys >Code Smell Detecting Tool and Code Smell-Structure Bug Relationship
【24h】

Code Smell Detecting Tool and Code Smell-Structure Bug Relationship

机译:代码Smell检测工具和代码Smell结构Bug关系

获取原文

摘要

This paper proposes an approach for detecting the so- called bad smells in software known as Code Smell. In considering software bad smells, object-oriented software metrics were used to detect the source code whereby Eclipse Plugins were developed for detecting in which location of Java source code the bad smell appeared so that software refactoring could then take place. The detected source code was classified into 7 types: Large Class, Long Method, Parallel Inheritance Hierarchy, Long Parameter List, Lazy Class, Switch Statement, and Data Class. This work conducted analysis by using 323 java classes to ascertain the relationship between the code smell and structural defects of software by using the data mining techniques of Naive Bayes and Association Rules. The result of the Naive Bayes test showed that the Lazy Class caused structural defects in DLS, DE, and Se. Also, Data Class caused structural defects in UwF, DE, and Se, while Long Method, Large Class, Data Class, and Switch Statement caused structural defects in UwF and Se. Finally, Parallel Inheritance Hierarchy caused structural defects in Se. However, Long Parameter List caused no structural defects whatsoever. The results of the Association Rules test found that the Lazy Class code smell caused structural defects in DLS and DE, which corresponded to the results of the Naive Bayes test.
机译:本文提出了一种方法,用于检测称为代码闻名的软件中所谓的难闻气味。在考虑软件糟糕的气味时,使用面向对象的软件度量来检测源代码,由此开发了Eclipse插件,用于检测Java源代码的位置似乎糟糕的气味,因此可以进行软件重构。检测到的源代码被分类为7种类型:大类,长方法,并行继承层次结构,长参数列表,延迟类,切换语句和数据类。这项工作通过使用323个Java类进行了分析,以确定通过使用天真贝叶斯和关联规则的数据挖掘技术来确定软件的代码气味和结构缺陷之间的关系。朴素贝叶斯测试的结果表明,懒惰的阶级在DLS,DE和SE中引起了结构缺陷。此外,数据类在UWF,DE和SE中引起了结构缺陷,而LONG方法,大类,数据类和切换语句引起了UWF和SE的结构缺陷。最后,平行继承层次结构引起了SE的结构缺陷。但是,长参数列表导致无任何结构缺陷。关联规则测试结果发现,懒人类代码气味导致DLS和DE中的结构缺陷,其对应于幼稚贝叶斯测试的结果。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号