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

Method Validate

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

Source from the content-addressed store, hash-verified

65}
66
67func (r *BodyMinLenRule) Validate(msg lint.Commit) (*lint.Issue, bool) {
68 return validateMinLen("body", r.CheckLen, msg.Body())
69}
70
71// BodyMaxLenRule to validate max length of body
72type BodyMaxLenRule struct{ CheckLen int }

Callers 2

TestBodyMinLen_FailFunction · 0.95

Calls 2

validateMinLenFunction · 0.85
BodyMethod · 0.65

Tested by 2

TestBodyMinLen_FailFunction · 0.76