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

Method Validate

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

Source from the content-addressed store, hash-verified

167}
168
169func (r *ScopeMinLenRule) Validate(msg lint.Commit) (*lint.Issue, bool) {
170 return validateMinLen("scope", r.CheckLen, msg.Scope())
171}
172
173// ScopeMaxLenRule to validate max length of scope
174type ScopeMaxLenRule struct{ CheckLen int }

Callers 1

TestScopeMinLen_PassFunction · 0.95

Calls 2

validateMinLenFunction · 0.85
ScopeMethod · 0.65

Tested by 1

TestScopeMinLen_PassFunction · 0.76