Skip to main content

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

ParameterTypeRequiredDescription
projectstringOptional project name filter
thresholdintMinimum complexity threshold (default: 10)
limitint?Maximum number of items to return (default: 100). Items are sorted by complexity desc (worst first).