Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
91
func
(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_Pass
Function · 0.95
TestBodyMaxLineLen_Fail
Function · 0.95
TestBodyMaxLineLen_EmptyBody
Function · 0.95
Calls
2
validateMaxLineLength
Function · 0.85
Body
Method · 0.65
Tested by
3
TestBodyMaxLineLen_Pass
Function · 0.76
TestBodyMaxLineLen_Fail
Function · 0.76
TestBodyMaxLineLen_EmptyBody
Function · 0.76