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

Method Apply

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

Source from the content-addressed store, hash-verified

85
86func (r *BodyMaxLineLenRule) Name() string { return "body-max-line-length" }
87func (r *BodyMaxLineLenRule) Apply(s lint.RuleSetting) error {
88 return applyIntArg(&r.CheckLen, r.Name(), s)
89}
90
91func (r *BodyMaxLineLenRule) Validate(msg lint.Commit) (*lint.Issue, bool) {
92 return validateMaxLineLength("body", r.CheckLen, msg.Body())

Callers 3

TestBodyMaxLineLen_PassFunction · 0.95
TestBodyMaxLineLen_FailFunction · 0.95

Calls 2

NameMethod · 0.95
applyIntArgFunction · 0.85

Tested by 3

TestBodyMaxLineLen_PassFunction · 0.76
TestBodyMaxLineLen_FailFunction · 0.76