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

Method writeIssue

formatter/default.go:63–74  ·  view source on GitHub ↗
(w *strings.Builder, sign string, issue *lint.Issue)

Source from the content-addressed store, hash-verified

61}
62
63func (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
77func (f *DefaultFormatter) bySeverity(issues []*lint.Issue) (errs, warns, others []*lint.Issue) {

Callers 1

writeIssuesMethod · 0.95

Calls 3

RuleNameMethod · 0.80
InfosMethod · 0.80
DescriptionMethod · 0.65

Tested by

no test coverage detected