(findings []SecurityFinding, limit int)
| 393 | } |
| 394 | |
| 395 | func joinFindingDescriptions(findings []SecurityFinding, limit int) string { |
| 396 | if limit > len(findings) { |
| 397 | limit = len(findings) |
| 398 | } |
| 399 | parts := make([]string, 0, limit) |
| 400 | for i := 0; i < limit; i++ { |
| 401 | parts = append(parts, findings[i].Description) |
| 402 | } |
| 403 | return strings.Join(parts, "; ") |
| 404 | } |
| 405 | |
| 406 | func IsASCII(s string) bool { |
| 407 | for len(s) > 0 { |
no outgoing calls
no test coverage detected