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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: AlOmar, Eman Abdullah, Knobloch, Benjamin, Kain, Thomas, Kalish, Christopher, Mkaouer, Mohamed Wiem, Ouni, Ali
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910323566444544
author AlOmar, Eman Abdullah
Knobloch, Benjamin
Kain, Thomas
Kalish, Christopher
Mkaouer, Mohamed Wiem
Ouni, Ali
author_facet AlOmar, Eman Abdullah
Knobloch, Benjamin
Kain, Thomas
Kalish, Christopher
Mkaouer, Mohamed Wiem
Ouni, Ali
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2402_06035
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle AntiCopyPaster 2.0: Whitebox just-in-time code duplicates extraction
AlOmar, Eman Abdullah
Knobloch, Benjamin
Kain, Thomas
Kalish, Christopher
Mkaouer, Mohamed Wiem
Ouni, Ali
Software Engineering
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.
title AntiCopyPaster 2.0: Whitebox just-in-time code duplicates extraction
topic Software Engineering
url https://arxiv.org/abs/2402.06035