gograph_complexity
Analyze Go functions and report cyclomatic complexity metrics sorted from highest to lowest. Identify high-maintenance functions for refactoring.
Instructions
Estimate and report cyclomatic complexity metrics for Go functions, sorted from highest to lowest. BEHAVIOR & SAFETY: This is a 100% local, read-only static analysis tool. It has no side effects, requires no authorization or credentials, has no rate limits, and performs zero destructive modifications. USAGE GUIDELINES: Call this tool when auditing code quality, identifying high-maintenance functions, or planning refactoring of complex logic. Do NOT use for import dependency metrics (use gograph_deps instead). COMPLETENESS: Optional 'symbol' filter. Returns a structured complexity report indicating complexity numbers and severity labels. Example symbol: 'Build'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | No | Optional Go function or method symbol name substring to filter the complexity report (e.g., 'Build') |