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

Function checkNewlines

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

Source from the content-addressed store, hash-verified

315}
316
317func checkNewlines(command string) []SecurityFinding {
318 target := ExtractQuotedContent(command).FullyUnquoted
319 if strings.ContainsAny(target, "\n\r") {
320 return []SecurityFinding{{ID: CheckNewlines, Description: "Unquoted newline/CR in command"}}
321 }
322 return nil
323}
324
325func checkCommentQuoteDesync(command string) []SecurityFinding {
326 if !strings.ContainsAny(command, "'\"") {

Callers 1

RunAllSecurityChecksFunction · 0.85

Calls 1

ExtractQuotedContentFunction · 0.85

Tested by

no test coverage detected