(s lint.RuleSetting)
| 73 | |
| 74 | func (r *BodyMaxLenRule) Name() string { return "body-max-length" } |
| 75 | func (r *BodyMaxLenRule) Apply(s lint.RuleSetting) error { |
| 76 | return applyIntArg(&r.CheckLen, r.Name(), s) |
| 77 | } |
| 78 | |
| 79 | func (r *BodyMaxLenRule) Validate(msg lint.Commit) (*lint.Issue, bool) { |
| 80 | return validateMaxLen("body", r.CheckLen, msg.Body()) |