Conflict-Aware Optimal Scheduling of Code Clone Refactoring: A Constraint Programming Approach
Authors:
- Minhaz F. ZibranMZMinhaz F. Zibran
- Chanchal K. RoyCRChanchal K. Roy
- 1 June 2011
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 266-269
Abstract
Duplicated code, also known as code clones, are one of the malicious `code smells' that often need to be removed through refactoring for enhancing maintainability. Among all the potential refactoring opportunities, the choice and order of a set of refactoring activities may have distinguishable effect on the design/code quality. Moreover, there may be dependencies and conflicts among those refactorings. The organization may also impose priorities on certain refactoring activities. Addressing all these conflicts, priorities, and dependencies, manual formulation of an optimal refactoring schedule is very expensive, if not impossible. Therefore, an automated refactoring scheduler is necessary, which will maximize benefit and minimize refactoring effort. In this paper, we present a refactoring effort model, and propose a constraint programming approach for conflict-aware optimal scheduling of code clone refactoring.Keywords
This publication has 18 references indexed in Scilit:
- A case study to evaluate the suitability of graph transformation tools for program refactoringInternational Journal on Software Tools for Technology Transfer, 2010
- CnP: Towards an environment for the proactive management of copy-and-paste programming2009
- Conflict-aware schedule of software refactoringsIET Software, 2008
- Towards a refactoring guideline using code clone classification2008
- Search‐based refactoring: an empirical studyJournal of Software Maintenance and Evolution: Research and Practice, 2008
- Simultaneous Modification Support based on Code Clone Analysis2007
- Analysing refactoring dependencies using graph transformationSoftware and Systems Modeling, 2007
- A novel approach to optimize clone refactoring activity2006
- Can metrics help to bridge the gap between the improvement of OO design quality and its automation?2000
- A metrics suite for object oriented designIEEE Transactions on Software Engineering, 1994