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

Method Validate

lint/rule/case_rules.go:123–128  ·  view source on GitHub ↗
(msg lint.Commit)

Source from the content-addressed store, hash-verified

121}
122
123func (r *HeaderCaseRule) Validate(msg lint.Commit) (*lint.Issue, bool) {
124 if casing.Check(msg.Header(), r.Case) {
125 return nil, true
126 }
127 return caseIssue("header", r.Case), false
128}

Callers 2

TestHeaderCaseRule_FailFunction · 0.95

Calls 3

CheckFunction · 0.92
caseIssueFunction · 0.85
HeaderMethod · 0.65

Tested by 2

TestHeaderCaseRule_FailFunction · 0.76