Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/conventionalcommit/commitlint
/ Validate
Method
Validate
rule/length_rules.go:53–55 ·
view source on GitHub ↗
(msg lint.Commit)
Source
from the content-addressed store, hash-verified
51
}
52
53
func
(r *HeadMaxLenRule) Validate(msg lint.Commit) (*lint.Issue, bool) {
54
return
validateMaxLen(
"header"
, r.CheckLen, msg.Header())
55
}
56
57
// --- Body ---
58
Callers
4
TestHeadMaxLen_Pass
Function · 0.95
TestHeadMaxLen_Exact
Function · 0.95
TestHeadMaxLen_Fail
Function · 0.95
TestHeadMaxLen_NegativeDisables
Function · 0.95
Calls
2
validateMaxLen
Function · 0.85
Header
Method · 0.65
Tested by
4
TestHeadMaxLen_Pass
Function · 0.76
TestHeadMaxLen_Exact
Function · 0.76
TestHeadMaxLen_Fail
Function · 0.76
TestHeadMaxLen_NegativeDisables
Function · 0.76