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

Function checkIncompleteCommands

tools/bash/security.go:364–373  ·  view source on GitHub ↗
(command string)

Source from the content-addressed store, hash-verified

362}
363
364func checkIncompleteCommands(command string) []SecurityFinding {
365 trimmed := strings.TrimSpace(command)
366 var findings []SecurityFinding
367 for _, item := range incompletePatterns {
368 if item.re.MatchString(trimmed) {
369 findings = append(findings, SecurityFinding{ID: CheckIncompleteCommands, Description: item.description})
370 }
371 }
372 return findings
373}
374
375func singleREFinding(command string, re *regexp.Regexp, id int, desc string, fullyUnquoted bool) []SecurityFinding {
376 target := command

Callers 1

RunAllSecurityChecksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected