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

Method Apply

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

Source from the content-addressed store, hash-verified

189
190func (r *DescriptionMinLenRule) Name() string { return "description-min-length" }
191func (r *DescriptionMinLenRule) Apply(s lint.RuleSetting) error {
192 return applyIntArg(&r.CheckLen, r.Name(), s)
193}
194
195func (r *DescriptionMinLenRule) Validate(msg lint.Commit) (*lint.Issue, bool) {
196 return validateMinLen("description", r.CheckLen, msg.Description())

Callers 2

TestDescMinLen_PassFunction · 0.95
TestDescMinLen_FailFunction · 0.95

Calls 2

NameMethod · 0.95
applyIntArgFunction · 0.85

Tested by 2

TestDescMinLen_PassFunction · 0.76
TestDescMinLen_FailFunction · 0.76