analyze_typescript_complexity
Scores the complexity of a single TypeScript function using tsmetrics-core, returning JSON breakdown to help enforce complexity limits and prevent overly complex code.
Instructions
Scores the complexity of a single TypeScript function with tsmetrics-core. Returns JSON { total, details: [{ startLine, endLine, complexity, description }] }; lines are 1-based within the snippet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Source of exactly one TypeScript function. |