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

Method Validate

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

Source from the content-addressed store, hash-verified

141}
142
143func (r *TypeMinLenRule) Validate(msg lint.Commit) (*lint.Issue, bool) {
144 return validateMinLen("type", r.CheckLen, msg.Type())
145}
146
147// TypeMaxLenRule to validate max length of type
148type TypeMaxLenRule struct{ CheckLen int }

Callers 2

TestTypeMinLen_PassFunction · 0.95
TestTypeMinLen_FailFunction · 0.95

Calls 2

validateMinLenFunction · 0.85
TypeMethod · 0.65

Tested by 2

TestTypeMinLen_PassFunction · 0.76
TestTypeMinLen_FailFunction · 0.76