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

Method Apply

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

Source from the content-addressed store, hash-verified

73
74func (r *BodyMaxLenRule) Name() string { return "body-max-length" }
75func (r *BodyMaxLenRule) Apply(s lint.RuleSetting) error {
76 return applyIntArg(&r.CheckLen, r.Name(), s)
77}
78
79func (r *BodyMaxLenRule) Validate(msg lint.Commit) (*lint.Issue, bool) {
80 return validateMaxLen("body", r.CheckLen, msg.Body())

Callers 2

TestBodyMaxLen_FailFunction · 0.95

Calls 2

NameMethod · 0.95
applyIntArgFunction · 0.85

Tested by 2

TestBodyMaxLen_FailFunction · 0.76