(msg lint.Commit)
| 28 | } |
| 29 | |
| 30 | func (r *SignedOffByRule) Validate(msg lint.Commit) (*lint.Issue, bool) { |
| 31 | if hasTrailer(msg, r.Value) { |
| 32 | return nil, true |
| 33 | } |
| 34 | return lint.NewIssue("message must contain trailer " + r.Value), false |
| 35 | } |
| 36 | |
| 37 | // TrailerExistsRule checks that at least one footer note has a token matching |
| 38 | // the configured value. |