MCPcopy Create free account
hub / github.com/conventionalcommit/commitlint / Format

Method Format

lint/formatter/default.go:23–25  ·  view source on GitHub ↗

Format formats the lint.Failure

(result *lint.Result)

Source from the content-addressed store, hash-verified

21
22// Format formats the lint.Failure
23func (f *DefaultFormatter) Format(result *lint.Result) (string, error) {
24 return f.formatFailure(result.Input(), result.Issues()), nil
25}
26
27func (f *DefaultFormatter) formatFailure(msg string, issues []*lint.Issue) string {
28 if len(issues) == 0 {

Calls 3

formatFailureMethod · 0.95
InputMethod · 0.80
IssuesMethod · 0.80