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

Method Apply

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

Source from the content-addressed store, hash-verified

123
124func (r *FooterMaxLineLenRule) Name() string { return "footer-max-line-length" }
125func (r *FooterMaxLineLenRule) Apply(s lint.RuleSetting) error {
126 return applyIntArg(&r.CheckLen, r.Name(), s)
127}
128
129func (r *FooterMaxLineLenRule) Validate(msg lint.Commit) (*lint.Issue, bool) {
130 return validateMaxLineLength("footer", r.CheckLen, msg.Footer())

Callers 2

Calls 2

NameMethod · 0.95
applyIntArgFunction · 0.85

Tested by 2