get_complexity_report
Analyze code complexity metrics like cyclomatic complexity and nesting depth to identify areas needing refactoring in specific files or across projects.
Instructions
Get complexity metrics (cyclomatic, max nesting, param count) for symbols in a file or across the project. Useful for identifying complex code before refactoring.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | No | File path to report on (omit for project-wide top complex symbols) | |
| min_cyclomatic | No | Min cyclomatic complexity to include (default: 1 for file, 5 for project) | |
| limit | No | Max results (default: 30) | |
| sort_by | No | Sort by metric (default: cyclomatic) |