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

Method Apply

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

Source from the content-addressed store, hash-verified

21
22func (r *TypeCharsetRule) Name() string { return "type-charset" }
23func (r *TypeCharsetRule) Apply(s lint.RuleSetting) error {
24 return applyStringArg(&r.Charset, r.Name(), s)
25}
26
27func (r *TypeCharsetRule) Validate(msg lint.Commit) (*lint.Issue, bool) {
28 invalidChars, isValid := validateCharset(r.Charset, msg.Type())

Callers 3

TestTypeCharset_PassFunction · 0.95
TestTypeCharset_FailFunction · 0.95
TestTypeCharset_BadArgFunction · 0.95

Calls 2

NameMethod · 0.95
applyStringArgFunction · 0.85

Tested by 3

TestTypeCharset_PassFunction · 0.76
TestTypeCharset_FailFunction · 0.76
TestTypeCharset_BadArgFunction · 0.76