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

Method Apply

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

Source from the content-addressed store, hash-verified

18
19func (r *TypeEmptyRule) Name() string { return "type-empty" }
20func (r *TypeEmptyRule) Apply(_ lint.RuleSetting) error { return nil }
21func (r *TypeEmptyRule) Validate(msg lint.Commit) (*lint.Issue, bool) {
22 if msg.Type() != "" {
23 return nil, true

Callers 2

Calls

no outgoing calls

Tested by 2