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

Method IsClean

pkg/sql/security/scanner.go:1185–1187  ·  view source on GitHub ↗

IsClean returns true if no findings of any severity level exist. A clean result indicates no security issues were detected. Example: if results.IsClean() { fmt.Println("✓ No security issues detected") } else { fmt.Printf("⚠ Found %d security issues\n", results.TotalCount) }

()

Source from the content-addressed store, hash-verified

1183// fmt.Printf("⚠ Found %d security issues\n", results.TotalCount)
1184// }
1185func (r *ScanResult) IsClean() bool {
1186 return r.TotalCount == 0
1187}

Callers 2

TestScanResult_MethodsFunction · 0.95
securityScanInternalFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestScanResult_MethodsFunction · 0.76