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

Method Validate

rule/length_rules.go:53–55  ·  view source on GitHub ↗
(msg lint.Commit)

Source from the content-addressed store, hash-verified

51}
52
53func (r *HeadMaxLenRule) Validate(msg lint.Commit) (*lint.Issue, bool) {
54 return validateMaxLen("header", r.CheckLen, msg.Header())
55}
56
57// --- Body ---
58

Callers 4

TestHeadMaxLen_PassFunction · 0.95
TestHeadMaxLen_ExactFunction · 0.95
TestHeadMaxLen_FailFunction · 0.95

Calls 2

validateMaxLenFunction · 0.85
HeaderMethod · 0.65

Tested by 4

TestHeadMaxLen_PassFunction · 0.76
TestHeadMaxLen_ExactFunction · 0.76
TestHeadMaxLen_FailFunction · 0.76