detect_antipatterns
Identify performance antipatterns like N+1 queries, missing indexes, and memory leaks through static analysis across ORMs including Eloquent, Sequelize, and TypeORM.
Instructions
Detect performance antipatterns: N+1 query risks, missing eager loading, unbounded queries, event listener leaks, circular model dependencies, missing indexes, memory leaks (unbounded caches, closure leaks). Static analysis across all indexed ORMs (Eloquent, Sequelize, Mongoose, Django, Prisma, TypeORM, Drizzle).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | No | Antipattern categories to check (default: all) | |
| file_pattern | No | Filter to files matching this pattern | |
| severity_threshold | No | Minimum severity to report (default: low) | |
| limit | No | Max findings to return (default: 100) |