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

Method Apply

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

Source from the content-addressed store, hash-verified

42
43func (r *TypeCaseRule) Name() string { return "type-case" }
44func (r *TypeCaseRule) Apply(s lint.RuleSetting) error {
45 return applyCaseArg(&r.Case, r.Name(), s)
46}
47
48func (r *TypeCaseRule) Validate(msg lint.Commit) (*lint.Issue, bool) {
49 if casing.Check(msg.Type(), r.Case) {

Calls 2

NameMethod · 0.95
applyCaseArgFunction · 0.85