detect_clones
Find duplicate or near-duplicate functions in a repository. Detects exact copies and copies with renamed variables to identify code clones.
Instructions
Find duplicate or near-duplicate functions in the repo.
Detects Type 1 (exact copies) and Type 2 (copies with renamed variables).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | No | optional — if given, find clones of functions in this file. | |
| min_lines | No | minimum function line count to consider (default 5). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |