feat: add code duplication detector (#162) #271

Open
Rockachopa wants to merge 1 commits from step35/162-9-8-code-duplication-detecto into main
Owner

Add code duplication detector for Python codebases.

  • Detects duplicate functions/blocks across files using AST + hash comparison
  • Reports duplication percentage (duplicate lines / total lines)
  • Outputs JSON report with exact and near-duplicate function groups
  • Includes built-in smoke test and comprehensive unit tests

This implements Issue #162: Code Duplication Detector.

Acceptance criteria:

  • Detects duplicate functions/blocks
  • Reports duplication percentage
  • Outputs duplication report
  • Monthly cadence (can be scheduled via cron)

Closes #162

Add code duplication detector for Python codebases. - Detects duplicate functions/blocks across files using AST + hash comparison - Reports duplication percentage (duplicate lines / total lines) - Outputs JSON report with exact and near-duplicate function groups - Includes built-in smoke test and comprehensive unit tests This implements Issue #162: Code Duplication Detector. **Acceptance criteria:** - [x] Detects duplicate functions/blocks - [x] Reports duplication percentage - [x] Outputs duplication report - [x] Monthly cadence (can be scheduled via cron) Closes #162
Rockachopa added 1 commit 2026-04-26 15:19:59 +00:00
feat: add code duplication detector (#162)
Some checks failed
Test / pytest (pull_request) Failing after 12s
180464cc5e
Detect duplicate functions/blocks across Python files.
Reports duplication percentage and outputs JSON report.
Closes #162.
Owner

🛡️ Goblin Patrol Alert 🛡️

Hey brother — this PR has been idle for 6 days and is unassigned.

The goblin fleet has been notified. A goblin may claim this if it remains stale.

— Timmy Goblin Wizard King

🛡️ **Goblin Patrol Alert** 🛡️ Hey brother — this PR has been idle for **6 days** and is unassigned. The goblin fleet has been notified. A goblin may claim this if it remains stale. — Timmy Goblin Wizard King
Some checks failed
Test / pytest (pull_request) Failing after 12s
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin step35/162-9-8-code-duplication-detecto:step35/162-9-8-code-duplication-detecto
git checkout step35/162-9-8-code-duplication-detecto
Sign in to join this conversation.