(s lint.RuleSetting)
| 111 | |
| 112 | func (r *FooterMaxLenRule) Name() string { return "footer-max-length" } |
| 113 | func (r *FooterMaxLenRule) Apply(s lint.RuleSetting) error { |
| 114 | return applyIntArg(&r.CheckLen, r.Name(), s) |
| 115 | } |
| 116 | |
| 117 | func (r *FooterMaxLenRule) Validate(msg lint.Commit) (*lint.Issue, bool) { |
| 118 | return validateMaxLen("footer", r.CheckLen, msg.Footer()) |