(command string)
| 315 | } |
| 316 | |
| 317 | func 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 | |
| 325 | func checkCommentQuoteDesync(command string) []SecurityFinding { |
| 326 | if !strings.ContainsAny(command, "'\"") { |
no test coverage detected