code_smells
Detect code smells in TypeScript/JavaScript files: long functions, too many parameters, deep nesting, god classes, 'any' casts, non-null assertions. Scope analysis to a specific function for targeted checks.
Instructions
Detects code smells: long functions, too many parameters, deep nesting, god classes, 'any' casts, non-null assertions
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "code_smells"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the TS/JS file | |
| function | No | Scope analysis to a specific function |