A Constraint Programming Approach to Conflict-Aware Optimal Scheduling of Prioritized Code Clone Refactoring
Authors:
- Minhaz F. ZibranMZMinhaz F. Zibran
- Chanchal K. RoyCRChanchal K. Roy
- 1 September 2011
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 105-114
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 27 references indexed in Scilit:
- Conflict-Aware Optimal Scheduling of Code Clone Refactoring: A Constraint Programming Approach2011
- Towards flexible code clone detection, management, and refactoring in IDE2011
- Analyzing and Forecasting Near-Miss Clones in Evolving Software: An Empirical Study2011
- CnP: Towards an environment for the proactive management of copy-and-paste programming2009
- Do code clones matter?2009
- “Cloning considered harmful” considered harmful: patterns of cloning in softwareEmpirical Software Engineering, 2008
- Simultaneous Modification Support based on Code Clone Analysis2007
- On Refactoring Support Based on Code Clone Dependency Relation2005
- ARIES2005
- A metric-based approach to enhance design quality through meta-pattern transformations2003