MCPcopy Index your code
hub / github.com/conventionalcommit/commitlint / Validate

Method Validate

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

Source from the content-addressed store, hash-verified

84}
85
86func (r *DescriptionCaseRule) Validate(msg lint.Commit) (*lint.Issue, bool) {
87 if casing.Check(msg.Description(), r.Case) {
88 return nil, true
89 }
90 return caseIssue("description", r.Case), false
91}
92
93// BodyCaseRule validates that the commit body as a whole matches a given case
94// format. An empty body always passes.

Callers 2

Calls 3

CheckFunction · 0.92
caseIssueFunction · 0.85
DescriptionMethod · 0.65

Tested by 2