MCPcopy Index your code
hub / github.com/conventionalcommit/commitlint / writeIssues

Method writeIssues

formatter/default.go:52–61  ·  view source on GitHub ↗
(w *strings.Builder, sign, title string, issues []*lint.Issue)

Source from the content-addressed store, hash-verified

50}
51
52func (f *DefaultFormatter) writeIssues(w *strings.Builder, sign, title string, issues []*lint.Issue) {
53 if len(issues) == 0 {
54 return
55 }
56
57 w.WriteString("\n\n" + title + ":")
58 for _, issue := range issues {
59 f.writeIssue(w, sign, issue)
60 }
61}
62
63func (f *DefaultFormatter) writeIssue(w *strings.Builder, sign string, issue *lint.Issue) {
64 space := " "

Callers 1

writeFailureMethod · 0.95

Calls 1

writeIssueMethod · 0.95

Tested by

no test coverage detected