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

Method Validate

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

Source from the content-addressed store, hash-verified

153}
154
155func (r *TypeMaxLenRule) Validate(msg lint.Commit) (*lint.Issue, bool) {
156 return validateMaxLen("type", r.CheckLen, msg.Type())
157}
158
159// --- Scope ---
160

Callers 2

TestTypeMaxLen_PassFunction · 0.95
TestTypeMaxLen_FailFunction · 0.95

Calls 2

validateMaxLenFunction · 0.85
TypeMethod · 0.65

Tested by 2

TestTypeMaxLen_PassFunction · 0.76
TestTypeMaxLen_FailFunction · 0.76