MORCoRA: Multi-Objective Refactoring Recommendation Considering Review Availability

被引:0
|
作者
Chen, Lei [1 ]
Hayashi, Shinpei [1 ]
机构
[1] Tokyo Inst Technol, Sch Comp, Ookayama 2-12-1,Meguro Ku, Tokyo 1528550, Japan
关键词
Search-based software engineering; multi-objective search; refactoring; review availability; NONDOMINATED SORTING APPROACH; GENETIC ALGORITHM; MODEL;
D O I
10.1142/S0218194024500438
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Background: Search-based refactoring involves searching for a sequence of refactorings to achieve specific objectives. Although a typical objective is improving code quality, a different perspective is also required; the searched sequence must undergo review before being applied and may not be applied if the review fails or is postponed due to no proper reviewers. Aim: Therefore, it is essential to ensure that the searched sequence of refactorings can be reviewed promptly by reviewers who meet two criteria: (1) having enough expertise and (2) being free of heavy workload. The two criteria are regarded as the review availability of the refactoring sequence. Method: We propose MORCoRA, a multi-objective search-based technique that can search for code quality improvable, semantic preserved, and high review availability possessed refactoring sequences and corresponding proper reviewers. Results: We evaluate MORCoRA on six open-source repositories. The quantitative analysis reveals that MORCoRA can effectively recommend refactoring sequences that fit the requirements. The qualitative analysis demonstrates that the refactorings recommended by MORCoRA can enhance code quality and effectively address code smells. Furthermore, the recommended reviewers for those refactorings possess high expertise and are available to review. Conclusions: We recommend that refactoring recommenders consider both the impact on quality improvement and the developer resources required for review when recommending refactorings.
引用
收藏
页码:1919 / 1947
页数:29
相关论文
共 50 条
  • [1] A Brief Review on Multi-objective Software Refactoring and a New Method for Its Recommendation
    Kaur, Satnam
    Awasthi, Lalit K.
    Sangal, A. L.
    ARCHIVES OF COMPUTATIONAL METHODS IN ENGINEERING, 2021, 28 (04) : 3087 - 3111
  • [2] A Brief Review on Multi-objective Software Refactoring and a New Method for Its Recommendation
    Satnam Kaur
    Lalit K. Awasthi
    A. L. Sangal
    Archives of Computational Methods in Engineering, 2021, 28 : 3087 - 3111
  • [3] MIRROR: multi-objective refactoring recommendation via correlation analysis
    Yang Zhang
    Ke Guan
    Lining Fang
    Automated Software Engineering, 2024, 31
  • [4] MIRROR: multi-objective refactoring recommendation via correlation analysis
    Zhang, Yang
    Guan, Ke
    Fang, Lining
    AUTOMATED SOFTWARE ENGINEERING, 2024, 31 (01)
  • [5] THE MULTI-OBJECTIVE REFACTORING SELECTION PROBLEM
    Chisalita-Cretu, Camelia
    Vescan, Andreea
    KEPT 2009: KNOWLEDGE ENGINEERING PRINCIPLES AND TECHNIQUES, 2009, : 291 - 298
  • [6] Multi-Objective Optimization Techniques for Software Refactoring: A Systematic Literature Review
    Rafique, Muhammad Zaid
    Alam, Khubaib Amjab
    Iqbal, Umer
    2019 13TH INTERNATIONAL CONFERENCE ON MATHEMATICS, ACTUARIAL SCIENCE, COMPUTER SCIENCE AND STATISTICS (MACS-13), 2019,
  • [7] Overview of the Multi-Objective Refactoring Selection Problem
    Chisalita-Cretu, Camelia
    PROCEEDINGS OF THE 9TH INTERNATIONAL CONFERENCE ON VIRTUAL LEARNING, 2014, : 321 - 328
  • [8] Intelligent Change Operators for Multi-Objective Refactoring
    Abid, Chaima
    Ivers, James
    Ferreira, Thiago do N.
    Kessentini, Marouane
    Kahla, Fares E.
    Ozkaya, Ipek
    2021 36TH IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING ASE 2021, 2021, : 768 - 780
  • [9] MORE: A multi-objective refactoring recommendation approach to introducing design patterns and fixing code smells
    Ouni, Ali
    Kessentini, Marouane
    Cinneide, Mel O.
    Sahraoui, Houari
    Deb, Kalyanmoy
    Inoue, Katsuro
    JOURNAL OF SOFTWARE-EVOLUTION AND PROCESS, 2017, 29 (05)
  • [10] Enabling Decision and Objective Space Exploration for Interactive Multi-Objective Refactoring
    Rebai, Soumaya
    Alizadeh, Vahid
    Kessentini, Marouane
    Fehri, Houcem
    Kazman, Rick
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2022, 48 (05) : 1560 - 1578