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

Method Apply

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

Source from the content-addressed store, hash-verified

30
31func (r *ScopeEmptyRule) Name() string { return "scope-empty" }
32func (r *ScopeEmptyRule) Apply(_ lint.RuleSetting) error { return nil }
33func (r *ScopeEmptyRule) Validate(msg lint.Commit) (*lint.Issue, bool) {
34 if msg.Scope() != "" {
35 return nil, true

Calls

no outgoing calls

Tested by 2