Review code for maintainability issues and classic code smells. Use when checking code quality, architectural problems, type safety, Vue best practices, or general OOP design issues...
Review code when you need to:
TypeScript Types:
Vue Components:
Reactive Data:
General Code Smells:
1. Identify scope:
2. Apply checklist:
3. Report findings:
4. Provide feedback:
TypeScript red flags:
any, object, overly broad typesVue component red flags:
Reactive data red flags:
General code smell red flags:
## Review: [Component/Module]
### [Category]
#### [Issue]
- Severity: [Critical/Important/Minor]
- Location: file.ts:123
- Reference: [Link to checklist]
- Problem: [Explain]
- Fix: [Suggest]
Be constructive:
Be systematic:
Be pragmatic:
| Category | Key Focus | Goal | Common Refactorings |
|---|---|---|---|
| Bloaters | Size & Complexity | Extract Method / Class | Extract Method, Extract Class, Introduce Parameter Object |
| OO Abusers | Design Integrity | Use Polymorphism | Replace Conditional with Polymorphism, Replace Inheritance with Delegation |
| Change Preventers | Rigidity | Decouple / Organize | Move Method, Extract Class, Inline Class |
| Dispensables | Redundancy | Remove / Simplify | Inline Class, Remove Dead Code, Collapse Hierarchy |
| Couplers | Connectivity | Encapsulate / Move | Move Method, Hide Delegate, Remove Middle Man |