Big refactoring
This commit is contained in:
27
.kiro/hooks/code-quality-analyzer.kiro.hook
Normal file
27
.kiro/hooks/code-quality-analyzer.kiro.hook
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"enabled": true,
|
||||
"name": "Code Quality Analyzer",
|
||||
"description": "Analyzes modified source code files for potential improvements including code smells, design patterns, best practices, readability, maintainability, and performance optimizations",
|
||||
"version": "1",
|
||||
"when": {
|
||||
"type": "fileEdited",
|
||||
"patterns": [
|
||||
"*.py",
|
||||
"*.ts",
|
||||
"*.tsx",
|
||||
"*.js",
|
||||
"*.jsx",
|
||||
"*.java",
|
||||
"*.go",
|
||||
"*.rs",
|
||||
"*.cpp",
|
||||
"*.c",
|
||||
"*.h",
|
||||
"*.cs"
|
||||
]
|
||||
},
|
||||
"then": {
|
||||
"type": "askAgent",
|
||||
"prompt": "Analyze the modified code for potential improvements. Check for: 1) Code smells and anti-patterns, 2) Opportunities to apply design patterns, 3) Best practices violations, 4) Readability improvements, 5) Maintainability concerns, 6) Performance optimization opportunities. Provide specific, actionable suggestions while ensuring functionality remains intact."
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user