MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / reset

Method reset

cmd/gosqlx/cmd/sql_analyzer.go:544–556  ·  view source on GitHub ↗

reset resets analyzer state for new analysis

()

Source from the content-addressed store, hash-verified

542
543// reset resets analyzer state for new analysis
544func (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
559func (a *SQLAnalyzer) convertSecurityFindings(result *security.ScanResult) {

Callers 1

AnalyzeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected