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

Method Validate

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

Source from the content-addressed store, hash-verified

89}
90
91func (r *BodyMaxLineLenRule) Validate(msg lint.Commit) (*lint.Issue, bool) {
92 return validateMaxLineLength("body", r.CheckLen, msg.Body())
93}
94
95// --- Footer ---
96

Callers 3

TestBodyMaxLineLen_PassFunction · 0.95
TestBodyMaxLineLen_FailFunction · 0.95

Calls 2

validateMaxLineLengthFunction · 0.85
BodyMethod · 0.65

Tested by 3

TestBodyMaxLineLen_PassFunction · 0.76
TestBodyMaxLineLen_FailFunction · 0.76