Detect Code Smells
detect_code_smellsAnalyzes cached source files to identify structural code smells. Automatically infers the programming language and highlights problematic patterns.
Instructions
Detect structural code smells in a cached file. Prerequisite: load_file. Auto-infer language.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language | No | Primary language (e.g. TypeScript, Python, JavaScript, Go, Rust, Java). Auto-infer from files. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether the tool completed successfully. | |
| result | No | Successful result payload. | |
| error | No | Error payload when ok is false. |