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

Method Validate

rule/length_rules.go:79–81  ·  view source on GitHub ↗
(msg lint.Commit)

Source from the content-addressed store, hash-verified

77}
78
79func (r *BodyMaxLenRule) Validate(msg lint.Commit) (*lint.Issue, bool) {
80 return validateMaxLen("body", r.CheckLen, msg.Body())
81}
82
83// BodyMaxLineLenRule to validate max line length of body
84type BodyMaxLineLenRule struct{ CheckLen int }

Callers 2

TestBodyMaxLen_FailFunction · 0.95

Calls 2

validateMaxLenFunction · 0.85
BodyMethod · 0.65

Tested by 2

TestBodyMaxLen_FailFunction · 0.76