get_complexity_metrics
Calculate cyclomatic complexity for methods. Returns methods exceeding the threshold. Returns an envelope with items sorted worst-first, totalCount, truncated, limit (default 100), and a summary with max/avg/overThreshold.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
project | string | Optional project name filter | |
threshold | int | Minimum complexity threshold (default: 10) | |
limit | int? | Maximum number of items to return (default: 100). Items are sorted by complexity desc (worst first). |