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

Method Apply

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

Source from the content-addressed store, hash-verified

40
41func (r *ScopeCharsetRule) Name() string { return "scope-charset" }
42func (r *ScopeCharsetRule) Apply(s lint.RuleSetting) error {
43 return applyStringArg(&r.Charset, r.Name(), s)
44}
45
46func (r *ScopeCharsetRule) Validate(msg lint.Commit) (*lint.Issue, bool) {
47 invalidChars, isValid := validateCharset(r.Charset, msg.Scope())

Callers 2

TestScopeCharset_PassFunction · 0.95
TestScopeCharset_FailFunction · 0.95

Calls 2

NameMethod · 0.95
applyStringArgFunction · 0.85

Tested by 2

TestScopeCharset_PassFunction · 0.76
TestScopeCharset_FailFunction · 0.76