Suggest and guide application of refactoring patterns to improve code quality
Suggests appropriate refactoring patterns and guides their application to improve code quality, maintainability, and migration readiness.
Enable guided refactoring for:
| Tool | Purpose | Integration Method |
|---|---|---|
| IDE Refactoring | Automated refactoring | CLI / API |
| Sourcery | AI-powered suggestions | CLI |
| Sourcegraph Cody | Code intelligence | API |
| IntelliJ IDEA | Java refactoring | CLI |
| VS Code | Multi-language | Extension API |
{
"analysisId": "string",
"timestamp": "ISO8601",
"suggestions": [
{
"type": "extract-method|move-method|rename|inline|design-pattern",
"priority": "high|medium|low",
"target": {
"file": "string",
"element": "string",
"line": "number"
},
"description": "string",
"rationale": "string",
"steps": ["string"],
"estimatedImpact": {
"complexity": "string",
"maintainability": "string",
"testability": "string"
},
"risks": ["string"]
}
],
"patterns": {
"applicable": ["string"],
"opportunities": []
}
}
code-smell-detector: Identifies refactoring needscodemod-executor: Automates refactoringscode-transformation-executor: Executes suggested refactorings