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

Method Apply

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

Source from the content-addressed store, hash-verified

97
98func (r *BodyCaseRule) Name() string { return "body-case" }
99func (r *BodyCaseRule) Apply(s lint.RuleSetting) error {
100 return applyCaseArg(&r.Case, r.Name(), s)
101}
102
103func (r *BodyCaseRule) Validate(msg lint.Commit) (*lint.Issue, bool) {
104 body := msg.Body()

Calls 2

NameMethod · 0.95
applyCaseArgFunction · 0.85