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:155–157 ·
view source on GitHub ↗
(msg lint.Commit)
Source
from the content-addressed store, hash-verified
153
}
154
155
func
(r *TypeMaxLenRule) Validate(msg lint.Commit) (*lint.Issue, bool) {
156
return
validateMaxLen(
"type"
, r.CheckLen, msg.Type())
157
}
158
159
// --- Scope ---
160
Callers
2
TestTypeMaxLen_Pass
Function · 0.95
TestTypeMaxLen_Fail
Function · 0.95
Calls
2
validateMaxLen
Function · 0.85
Type
Method · 0.65
Tested by
2
TestTypeMaxLen_Pass
Function · 0.76
TestTypeMaxLen_Fail
Function · 0.76