code_complexity
Analyze source code complexity by calculating cyclomatic complexity and other metrics. Supports multiple programming languages with Python as default.
Instructions
Calculate cyclomatic complexity and other code metrics.
Parameters:
code — Source code to analyze complexity of.
language — Programming language (default: 'python').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| language | No | python |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |