reset resets analyzer state for new analysis
()
| 542 | |
| 543 | // reset resets analyzer state for new analysis |
| 544 | func (a *SQLAnalyzer) reset() { |
| 545 | a.Issues = a.Issues[:0] |
| 546 | a.SecurityScore = 100 |
| 547 | a.PerformanceScore = 100 |
| 548 | a.currentDepth = 0 |
| 549 | a.maxDepth = 0 |
| 550 | a.joinCount = 0 |
| 551 | a.subqueryCount = 0 |
| 552 | a.functionCount = 0 |
| 553 | a.hasCartesian = false |
| 554 | a.hasSelectStar = false |
| 555 | a.hasLiteralInWhere = false |
| 556 | } |
| 557 | |
| 558 | // convertSecurityFindings converts security scanner findings to unified AnalysisIssue format |
| 559 | func (a *SQLAnalyzer) convertSecurityFindings(result *security.ScanResult) { |