find_clones
Detect duplicated code blocks in a Python project, identifying exact, renamed, and near-miss clones. Returns clone pairs with similarity scores and cluster analysis to help refactor and maintain code quality.
Instructions
Detect code clones (duplicated code blocks) in a Python project. Finds Type-1 (exact), Type-2 (renamed), and Type-3 (near-miss) clones. Returns clone pairs with similarity scores and cluster analysis.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Directory path to scan for clones. | |
| min_lines | No | Minimum function length to consider (default: 5). | |
| threshold | No | Similarity threshold 0.0-1.0 (default: 0.8). |