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

Method Validate

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

Source from the content-addressed store, hash-verified

193}
194
195func (r *DescriptionMinLenRule) Validate(msg lint.Commit) (*lint.Issue, bool) {
196 return validateMinLen("description", r.CheckLen, msg.Description())
197}
198
199// DescriptionMaxLenRule to validate max length of description
200type DescriptionMaxLenRule struct{ CheckLen int }

Callers 2

TestDescMinLen_PassFunction · 0.95
TestDescMinLen_FailFunction · 0.95

Calls 2

validateMinLenFunction · 0.85
DescriptionMethod · 0.65

Tested by 2

TestDescMinLen_PassFunction · 0.76
TestDescMinLen_FailFunction · 0.76