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

Method Apply

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

Source from the content-addressed store, hash-verified

61
62func (r *BodyMinLenRule) Name() string { return "body-min-length" }
63func (r *BodyMinLenRule) Apply(s lint.RuleSetting) error {
64 return applyIntArg(&r.CheckLen, r.Name(), s)
65}
66
67func (r *BodyMinLenRule) Validate(msg lint.Commit) (*lint.Issue, bool) {
68 return validateMinLen("body", r.CheckLen, msg.Body())

Callers 2

TestBodyMinLen_FailFunction · 0.95

Calls 2

NameMethod · 0.95
applyIntArgFunction · 0.85

Tested by 2

TestBodyMinLen_FailFunction · 0.76