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

Method Apply

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

Source from the content-addressed store, hash-verified

99
100func (r *FooterMinLenRule) Name() string { return "footer-min-length" }
101func (r *FooterMinLenRule) Apply(s lint.RuleSetting) error {
102 return applyIntArg(&r.CheckLen, r.Name(), s)
103}
104
105func (r *FooterMinLenRule) Validate(msg lint.Commit) (*lint.Issue, bool) {
106 return validateMinLen("footer", r.CheckLen, msg.Footer())

Callers 1

Calls 2

NameMethod · 0.95
applyIntArgFunction · 0.85

Tested by 1