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

Method Validate

rule/empty_rules.go:69–74  ·  view source on GitHub ↗
(msg lint.Commit)

Source from the content-addressed store, hash-verified

67func (r *DescriptionEmptyRule) Name() string { return "description-empty" }
68func (r *DescriptionEmptyRule) Apply(_ lint.RuleSetting) error { return nil }
69func (r *DescriptionEmptyRule) Validate(msg lint.Commit) (*lint.Issue, bool) {
70 if msg.Description() != "" {
71 return nil, true
72 }
73 return lint.NewIssue("description must not be empty"), false
74}

Calls 2

NewIssueFunction · 0.92
DescriptionMethod · 0.65