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

Method Apply

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

Source from the content-addressed store, hash-verified

201
202func (r *DescriptionMaxLenRule) Name() string { return "description-max-length" }
203func (r *DescriptionMaxLenRule) Apply(s lint.RuleSetting) error {
204 return applyIntArg(&r.CheckLen, r.Name(), s)
205}
206
207func (r *DescriptionMaxLenRule) Validate(msg lint.Commit) (*lint.Issue, bool) {
208 return validateMaxLen("description", r.CheckLen, msg.Description())

Callers 1

Calls 2

NameMethod · 0.95
applyIntArgFunction · 0.85

Tested by 1