AntiCopyPaster 2.0: Whitebox just-in-time code duplicates extraction.

Saved in:
Bibliographic Details
Title: AntiCopyPaster 2.0: Whitebox just-in-time code duplicates extraction.
Authors: AlOmar, Eman Abdullah1 ealomar@stevens.edu, Knobloch, Benjamin1 bknobloc@stevens.edu, Kain, Thomas1 tkain@stevens.edu, Kalish, Christopher1 ckalish@stevens.edu, Mkaouer, Mohamed Wiem2 mmkaouer@umich.edu, Ouni, Ali3 ali.ouni@etsmtl.ca
Source: ICSE: International Conference on Software Engineering. 2024, p84-88. 5p.
Subjects: Github Inc., Computer software developers, Workflow management, Customization, Computer software quality control
Abstract: 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. [ABSTRACT FROM AUTHOR]
Copyright of ICSE: International Conference on Software Engineering is the property of Association for Computing Machinery and its content may not be copied or emailed to multiple sites without the copyright holder's express written permission. Additionally, content may not be used with any artificial intelligence tools or machine learning technologies. However, users may print, download, or email articles for individual use. This abstract may be abridged. No warranty is given about the accuracy of the copy. Users should refer to the original published version of the material for the full abstract. (Copyright applies to all Abstracts.)
Database: Engineering Source
Full text is not displayed to guests.
Description
Abstract: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. [ABSTRACT FROM AUTHOR]
DOI:10.1145/3639478.3640035