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

Method Apply

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

Source from the content-addressed store, hash-verified

80
81func (r *DescriptionCaseRule) Name() string { return "description-case" }
82func (r *DescriptionCaseRule) Apply(s lint.RuleSetting) error {
83 return applyCaseArg(&r.Case, r.Name(), s)
84}
85
86func (r *DescriptionCaseRule) Validate(msg lint.Commit) (*lint.Issue, bool) {
87 if casing.Check(msg.Description(), r.Case) {

Callers 2

Calls 2

NameMethod · 0.95
applyCaseArgFunction · 0.85

Tested by 2