(cs *iostreams.ColorScheme, annotations []Annotation)
| 90 | } |
| 91 | |
| 92 | func RenderAnnotations(cs *iostreams.ColorScheme, annotations []Annotation) string { |
| 93 | lines := []string{} |
| 94 | |
| 95 | for _, a := range annotations { |
| 96 | lines = append(lines, fmt.Sprintf("%s %s", AnnotationSymbol(cs, a), a.Message)) |
| 97 | // Following newline is essential for spacing between annotations |
| 98 | lines = append(lines, cs.Mutedf("%s: %s#%d\n", a.JobName, a.Path, a.StartLine)) |
| 99 | } |
| 100 | |
| 101 | return strings.Join(lines, "\n") |
| 102 | } |
no test coverage detected