AntiCopyPaster 2.0:白盒即时重复代码提取
AntiCopyPaster 2.0: Whitebox just-in-time code duplicates extraction
AI总结:
该论文介绍AntiCopyPaster 2.0,一个IntelliJ IDEA插件,用于在重复代码出现时即时检测并重构,支持自定义检测规则,并已开源。
摘要:
AntiCopyPaster 是一个IntelliJ IDEA插件,旨在当重复代码出现时立即以交互方式检测并重构重复代码。该插件仅在值得提取时才建议提取重复代码。与当前的提取方法重构方法相比,我们的工具无缝集成到开发者的工作流程中,并主动提供重构建议。这项工作扩展了我们的工具,允许开发者根据其需求和偏好自定义检测规则,即度量标准。该插件及其源代码可在GitHub上公开获取,网址为https://github.com/refactorings/anti-copy-paster。演示视频可在YouTube上观看:https://youtu.be/Y1sbfpds2Ms。
英文摘要:
AntiCopyPaster is an IntelliJ IDEA plugin, implemented to detect and refactor duplicate code interactively as soon as a duplicate is introduced. The plugin only recommends the extraction of a duplicate when it is worth it. In contrast to current Extract Method refactoring approaches, our tool seamlessly integrates with the developer's workflow and actively provides recommendations for refactorings. This work extends our tool to allow developers to customize the detection rules, i.e., metrics, based on their needs and preferences. The plugin and its source code are publicly available on GitHub at https://github.com/refactorings/anti-copy-paster. The demonstration video can be found on YouTube: https://youtu.be/ Y1sbfpds2Ms.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。