MCPcopy Create free account
hub / github.com/conventionalcommit/commitlint / Apply

Method Apply

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

Source from the content-addressed store, hash-verified

175
176func (r *ScopeMaxLenRule) Name() string { return "scope-max-length" }
177func (r *ScopeMaxLenRule) Apply(s lint.RuleSetting) error {
178 return applyIntArg(&r.CheckLen, r.Name(), s)
179}
180
181func (r *ScopeMaxLenRule) Validate(msg lint.Commit) (*lint.Issue, bool) {
182 return validateMaxLen("scope", r.CheckLen, msg.Scope())

Callers 1

Calls 2

NameMethod · 0.95
applyIntArgFunction · 0.85

Tested by 1