(msg lint.Commit)
| 55 | } |
| 56 | |
| 57 | func (r *TrailerExistsRule) Validate(msg lint.Commit) (*lint.Issue, bool) { |
| 58 | for _, note := range msg.Notes() { |
| 59 | if note.Token() == r.Value { |
| 60 | return nil, true |
| 61 | } |
| 62 | } |
| 63 | return lint.NewIssue("message must contain trailer " + r.Value), false |
| 64 | } |