期刊文献+

基于代码行变更指数的异味类排序方法

Prioritization of smelly classes based on code line change index
下载PDF
导出
摘要 为提高重构效率,提出一种通过代码行变更指数来对异味类进行排序的方法。此前对于代码异味的研究主要关注静态代码行度量指标,但是在整个项目开发过程中代码行数是动态变化的,且变化规模越大的类出现异味的概率越大。通过对整个项目开发过程中代码行动态变化过程进行分析,提出代码行变更指数对异味类变化规模进行排序,使其重构主要关注那些变化较大的异味类,减少重构成本。对比实验结果表明,按照该方法对异味类进行重构,可以减少异味剩余率,提高重构效率。 To improve the efficiency of refactoring,a method was proposed to sort the smelly classes by the code line change index.Previous researches on code smell focus on static code line metrics,but the number of code lines changes dynamically throughout the project,and the larger the scale of change,the more likely the class is to have an smell.By analyzing the dynamic change process of the code line in the whole project development process,the code line change index was proposed to sort the change scale of the odor class,so as to make its refactoring focus on those smelly classes with large changes,thus reducing the cost of reconstruction.Through comparative experiments,it is verified that the smelly class can be refactored according to this method to reduce code smell left rate,thus improving the efficiency of refactoring.
作者 位欢欢 吴海涛 高建华 WEI Huan-huan;WU Hai-tao;GAO Jian-hua(College of Information,Mechanical and Electrical Engineering,Shanghai Normal University,Shanghai 200234,China)
出处 《计算机工程与设计》 北大核心 2021年第3期656-662,共7页 Computer Engineering and Design
基金 国家自然科学基金项目(61672355)。
关键词 代码异味 重构 代码变更 代码行变更指数 异味类排序 code smell refactoring code change code line change index prioritization of smelly classes
  • 相关文献

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部