(msg lint.Commit)
| 67 | func (r *DescriptionEmptyRule) Name() string { return "description-empty" } |
| 68 | func (r *DescriptionEmptyRule) Apply(_ lint.RuleSetting) error { return nil } |
| 69 | func (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 | } |