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

Method Apply

rule/case_rules.go:119–121  ·  view source on GitHub ↗
(s lint.RuleSetting)

Source from the content-addressed store, hash-verified

117
118func (r *HeaderCaseRule) Name() string { return "header-case" }
119func (r *HeaderCaseRule) Apply(s lint.RuleSetting) error {
120 return applyCaseArg(&r.Case, r.Name(), s)
121}
122
123func (r *HeaderCaseRule) Validate(msg lint.Commit) (*lint.Issue, bool) {
124 if casing.Check(msg.Header(), r.Case) {

Callers 2

TestHeaderCaseRule_FailFunction · 0.95

Calls 2

NameMethod · 0.95
applyCaseArgFunction · 0.85

Tested by 2

TestHeaderCaseRule_FailFunction · 0.76