首页> 外文期刊>Software Quality Journal >Multi-objective code-smells detection using good and bad design examples
【24h】

Multi-objective code-smells detection using good and bad design examples

机译:使用好的和坏的设计示例进行多目标代码嗅觉检测

获取原文
获取原文并翻译 | 示例
           

摘要

Code-smells are identified, in general, by using a set of detection rules. These rules are manually defined to identify the key symptoms that characterize a code-smell using combinations of mainly quantitative (metrics), structural, and/or lexical information. We propose in this work to consider the problem of code-smell detection as a multi-objective problem where examples of code-smells and well-designed code are used to generate detection rules. To this end, we use multi-objective genetic programming (MOGP) to find the best combination of metrics that maximizes the detection of code-smell examples and minimizes the detection of well-designed code examples. We evaluated our proposal on seven large open-source systems and found that, on average, most of the different five code-smell types were detected with an average of 87 % of precision and 92 % of recall. Statistical analysis of our experiments over 51 runs shows that MOGP performed significantly better than state-of-the-art code-smell detectors.
机译:通常,通过使用一组检测规则来识别代码气味。手动定义这些规则,以使用主要是定量(度量),结构和/或词汇信息的组合来识别表征代码气味的关键症状。我们在这项工作中建议将代码气味检测问题视为一个多目标问题,其中使用代码气味和精心设计的代码示例来生成检测规则。为此,我们使用多目标遗传规划(MOGP)来找到度量的最佳组合,以最大程度地检测代码气味示例并最小化对设计良好的代码示例的检测。我们评估了关于七个大型开源系统的建议,发现平均而言,检测到的五种不同代码气味类型中的大多数平均精度为87%,召回率为92%。我们对51次运行进行的实验的统计分析表明,MOGP的性能明显优于最新的代码气味检测器。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号