(msg lint.Commit)
| 39 | } |
| 40 | |
| 41 | func (r *HeadMinLenRule) Validate(msg lint.Commit) (*lint.Issue, bool) { |
| 42 | return validateMinLen("header", r.CheckLen, msg.Header()) |
| 43 | } |
| 44 | |
| 45 | // HeadMaxLenRule to validate max length of header |
| 46 | type HeadMaxLenRule struct{ CheckLen int } |