Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/conventionalcommit/commitlint
/ Validate
Method
Validate
lint/rule/case_rules.go:123–128 ·
view source on GitHub ↗
(msg lint.Commit)
Source
from the content-addressed store, hash-verified
121
}
122
123
func
(r *HeaderCaseRule) Validate(msg lint.Commit) (*lint.Issue, bool) {
124
if
casing.Check(msg.Header(), r.Case) {
125
return
nil, true
126
}
127
return
caseIssue(
"header"
, r.Case), false
128
}
Callers
2
TestHeaderCaseRule_LowerPass
Function · 0.95
TestHeaderCaseRule_Fail
Function · 0.95
Calls
3
Check
Function · 0.92
caseIssue
Function · 0.85
Header
Method · 0.65
Tested by
2
TestHeaderCaseRule_LowerPass
Function · 0.76
TestHeaderCaseRule_Fail
Function · 0.76