期刊论文详细信息
IEEE Access
Recommending Refactoring Solutions Based on Traceability and Code Metrics
Wentao Wang1  Nan Niu1  Zhendong Niu2  Ally S. Nyamawe2  Hui Liu2 
[1] Department of Electrical Engineering and Computer Science, University of Cincinnati, Cincinnati, OH, USA;School of Computer Science and Technology, Beijing Institute of Technology, Beijing, China;
关键词: Entropy;    refactoring;    requirements traceability;    solution recommendation;   
DOI  :  10.1109/ACCESS.2018.2868990
来源: DOAJ
【 摘 要 】

Software refactoring has been extensively used to rectify the design flaws and improve software quality without affecting its observable behaviors. For a given code smell, it is common that there exist multiple refactoring solutions. However, it is challenging for developers to select the best one from such potential solutions. Consequently, a number of approaches have been proposed to facilitate the selection. Such approaches compare and select among alternative refactoring solutions based on their impact on metrics of source code. However, their impact on the traceability between source code and requirements is ignored although the importance of such traceability has been well recognized. To this end, we select among alternative refactoring solutions according to how they improve the traceability as well as source code design. To quantify the quality of traceability and source code design we leverage the use of entropy-based and traditional coupling and cohesion metrics respectively. We virtually apply alternative refactoring solutions and measure their effect on the traceability and source code design. The one leading to greatest improvement is recommended. The proposed approach has been evaluated on a well-known data set. The evaluation results suggest that on up to 71% of the cases, developers prefer our recommendation to the traditional recommendation based on code metrics.

【 授权许可】

Unknown   

  文献评价指标  
  下载次数:0次 浏览次数:0次