AntiCopyPaster 2.0:白盒即时代码重复提取
软件工程
2024-02-12 v1
摘要
AntiCopyPaster 是一款 IntelliJ IDEA 插件,旨在一旦引入重复代码即可交互式地检测并重构。该插件仅在提取重复代码具有价值时才提供建议。与当前的提取方法(Extract Method)重构方法相比,我们的工具无缝集成到开发者的工作流中,并主动提供重构建议。本工作扩展了我们的工具,允许开发者根据需求和偏好自定义检测规则(即度量指标)。该插件及其源代码已在 GitHub 上公开:https://github.com/refactorings/anti-copy-paster。演示视频可在 YouTube 观看:https://youtu.be/Y1sbfpds2Ms。
引用
@article{arxiv.2402.06035,
title = {AntiCopyPaster 2.0: Whitebox just-in-time code duplicates extraction},
author = {Eman Abdullah AlOmar and Benjamin Knobloch and Thomas Kain and Christopher Kalish and Mohamed Wiem Mkaouer and Ali Ouni},
journal= {arXiv preprint arXiv:2402.06035},
year = {2024}
}