27 lines
926 B
Plaintext
27 lines
926 B
Plaintext
{
|
|
"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."
|
|
}
|
|
} |