(w *strings.Builder, sign string, issue *lint.Issue)
| 61 | } |
| 62 | |
| 63 | func (f *DefaultFormatter) writeIssue(w *strings.Builder, sign string, issue *lint.Issue) { |
| 64 | space := " " |
| 65 | |
| 66 | // ❌ rule-name: description |
| 67 | // - info1 |
| 68 | // - info2 |
| 69 | |
| 70 | fmt.Fprintf(w, "\n%s %s: %s", space+sign, issue.RuleName(), issue.Description()) |
| 71 | for _, msg := range issue.Infos() { |
| 72 | fmt.Fprintf(w, "\n%s - %s", space+space, msg) |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | // bySeverity returns all messages with given severity |
| 77 | func (f *DefaultFormatter) bySeverity(issues []*lint.Issue) (errs, warns, others []*lint.Issue) { |
no test coverage detected