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

Function CountIssuesBySeverity

cmd/gosqlx/cmd/analysis_types.go:308–322  ·  view source on GitHub ↗
(issues []AnalysisIssue)

Source from the content-addressed store, hash-verified

306}
307
308func CountIssuesBySeverity(issues []AnalysisIssue) (critical, high, medium, low int) {
309 for _, issue := range issues {
310 switch issue.Severity {
311 case IssueSeverityCritical:
312 critical++
313 case IssueSeverityHigh:
314 high++
315 case IssueSeverityMedium:
316 medium++
317 case IssueSeverityLow:
318 low++
319 }
320 }
321 return
322}

Callers 3

AnalyzeMethod · 0.85

Calls

no outgoing calls

Tested by 2