(msg lint.Commit)
| 66 | } |
| 67 | |
| 68 | func (r *DescriptionFullStopRule) Validate(msg lint.Commit) (*lint.Issue, bool) { |
| 69 | desc := msg.Description() |
| 70 | if desc == "" { |
| 71 | return nil, true |
| 72 | } |
| 73 | if !strings.HasSuffix(desc, r.Char) { |
| 74 | return nil, true |
| 75 | } |
| 76 | return lint.NewIssue(fmt.Sprintf("description must not end with %q", r.Char)), false |
| 77 | } |