MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / singleRawFinding

Function singleRawFinding

tools/bash/security.go:388–393  ·  view source on GitHub ↗
(command string, re *regexp.Regexp, id int, desc string)

Source from the content-addressed store, hash-verified

386}
387
388func singleRawFinding(command string, re *regexp.Regexp, id int, desc string) []SecurityFinding {
389 if re.MatchString(command) {
390 return []SecurityFinding{{ID: id, Description: desc}}
391 }
392 return nil
393}
394
395func joinFindingDescriptions(findings []SecurityFinding, limit int) string {
396 if limit > len(findings) {

Callers 1

RunAllSecurityChecksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected