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

Method Apply

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

Source from the content-addressed store, hash-verified

111
112func (r *FooterMaxLenRule) Name() string { return "footer-max-length" }
113func (r *FooterMaxLenRule) Apply(s lint.RuleSetting) error {
114 return applyIntArg(&r.CheckLen, r.Name(), s)
115}
116
117func (r *FooterMaxLenRule) Validate(msg lint.Commit) (*lint.Issue, bool) {
118 return validateMaxLen("footer", r.CheckLen, msg.Footer())

Callers 1

Calls 2

NameMethod · 0.95
applyIntArgFunction · 0.85

Tested by 1