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

Method Validate

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

Source from the content-addressed store, hash-verified

39}
40
41func (r *HeadMinLenRule) Validate(msg lint.Commit) (*lint.Issue, bool) {
42 return validateMinLen("header", r.CheckLen, msg.Header())
43}
44
45// HeadMaxLenRule to validate max length of header
46type HeadMaxLenRule struct{ CheckLen int }

Callers 3

TestHeadMinLen_PassFunction · 0.95
TestHeadMinLen_ExactFunction · 0.95
TestHeadMinLen_FailFunction · 0.95

Calls 2

validateMinLenFunction · 0.85
HeaderMethod · 0.65

Tested by 3

TestHeadMinLen_PassFunction · 0.76
TestHeadMinLen_ExactFunction · 0.76
TestHeadMinLen_FailFunction · 0.76