Duplicate code and role detection. Identifies clone code, similar functions, and duplicate constants, suggesting consolidation approaches.
/plugin marketplace add chkim-su/serena-refactor-marketplace/plugin install serena-refactor@serena-refactor-marketplace# Detect Duplicates Command Detects duplicated code and roles in the codebase. ## Usage ## Workflow ### Step 0: Activate Serena Project ### Step 1: Target Selection If no target provided: ### Step 2: Run Duplicate Detection ### Step 3: Output Results --- ## Detection Criteria ### Clone Code Thresholds | Type | Similarity | Min Lines | |------|------------|-----------| | Type-1 (Identical) | 100% | 5 lines | | Type-2 (Parameterized) | > 90% | 5 lines | | Type-3 (Similar) | > 70% | 10 lines | ### Role Duplication Signals - Same prefix/suffix (e.g., `*Manager`, `*Handler...