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

Method Apply

rule/empty_rules.go:44–44  ·  view source on GitHub ↗
(_ lint.RuleSetting)

Source from the content-addressed store, hash-verified

42
43func (r *BodyEmptyRule) Name() string { return "body-empty" }
44func (r *BodyEmptyRule) Apply(_ lint.RuleSetting) error { return nil }
45func (r *BodyEmptyRule) Validate(msg lint.Commit) (*lint.Issue, bool) {
46 if msg.Body() != "" {
47 return nil, true

Callers 2

Calls

no outgoing calls

Tested by 2