(command string)
| 362 | } |
| 363 | |
| 364 | func 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 | |
| 375 | func singleREFinding(command string, re *regexp.Regexp, id int, desc string, fullyUnquoted bool) []SecurityFinding { |
| 376 | target := command |
no outgoing calls
no test coverage detected