analyze_complexity
Assess code complexity by analyzing metrics like cyclomatic, cognitive, and halstead to evaluate difficulty levels and improve code quality.
Instructions
IMPORTANT: This tool should be automatically called when users mention "복잡도", "복잡한지", "complexity", "how complex", "is it complex", "difficulty level" or similar keywords. Analyze code complexity
Input Schema
Name | Required | Description | Default |
---|---|---|---|
code | Yes | Code to analyze | |
metrics | No | Metrics to calculate |
Input Schema (JSON Schema)
{
"properties": {
"code": {
"description": "Code to analyze",
"type": "string"
},
"metrics": {
"description": "Metrics to calculate",
"enum": [
"cyclomatic",
"cognitive",
"halstead",
"all"
],
"type": "string"
}
},
"required": [
"code"
],
"type": "object"
}