agentsqripts
Version:
Comprehensive static code analysis toolkit for identifying technical debt, security vulnerabilities, performance issues, and code quality problems
51 lines (50 loc) • 1.26 kB
JSON
{
"file": "analyze-cleanup.js",
"issues": [
{
"type": "o_n_squared",
"severity": "HIGH",
"category": "Algorithm",
"location": "analyze-cleanup.js:228-241",
"line": 241,
"outerLoop": 228,
"innerLoop": 241,
"code": "rawExtensions.forEach(ext => {",
"description": "Nested iteration creating O(n²) complexity: for (let i = 0; i < args.length; i++) {... → rawExtensions.forEach(ext => {...",
"summary": "True nested iteration pattern creating O(n²) complexity",
"recommendation": "Use hash maps, sets, or single-pass algorithms to reduce complexity",
"effort": 3,
"impact": "40–80% latency reduction",
"estimatedSavings": "40-80% latency reduction"
}
],
"performanceScore": 100,
"metrics": {
"totalIssues": 1,
"score": 100,
"grade": "A",
"totalEffort": 3,
"categoryBreakdown": {
"Algorithm": 1
},
"severityBreakdown": {
"HIGH": 1,
"MEDIUM": 0,
"LOW": 0
}
},
"summary": {
"totalIssues": 1,
"score": 100,
"grade": "A",
"totalEffort": 3,
"categoryBreakdown": {
"Algorithm": 1
},
"severityBreakdown": {
"HIGH": 1,
"MEDIUM": 0,
"LOW": 0
}
}
}