MCPcopy Create free account
hub / github.com/conventionalcommit/commitlint / Apply

Method Apply

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

Source from the content-addressed store, hash-verified

59
60func (r *ScopeCaseRule) Name() string { return "scope-case" }
61func (r *ScopeCaseRule) Apply(s lint.RuleSetting) error {
62 return applyCaseArg(&r.Case, r.Name(), s)
63}
64
65func (r *ScopeCaseRule) Validate(msg lint.Commit) (*lint.Issue, bool) {
66 // scope is optional; skip the check when absent

Calls 2

NameMethod · 0.95
applyCaseArgFunction · 0.85