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

Method Apply

rule/length_rules.go:165–167  ·  view source on GitHub ↗
(s lint.RuleSetting)

Source from the content-addressed store, hash-verified

163
164func (r *ScopeMinLenRule) Name() string { return "scope-min-length" }
165func (r *ScopeMinLenRule) Apply(s lint.RuleSetting) error {
166 return applyIntArg(&r.CheckLen, r.Name(), s)
167}
168
169func (r *ScopeMinLenRule) Validate(msg lint.Commit) (*lint.Issue, bool) {
170 return validateMinLen("scope", r.CheckLen, msg.Scope())

Callers 1

TestScopeMinLen_PassFunction · 0.95

Calls 2

NameMethod · 0.95
applyIntArgFunction · 0.85

Tested by 1

TestScopeMinLen_PassFunction · 0.76