(s lint.RuleSetting)
| 201 | |
| 202 | func (r *DescriptionMaxLenRule) Name() string { return "description-max-length" } |
| 203 | func (r *DescriptionMaxLenRule) Apply(s lint.RuleSetting) error { |
| 204 | return applyIntArg(&r.CheckLen, r.Name(), s) |
| 205 | } |
| 206 | |
| 207 | func (r *DescriptionMaxLenRule) Validate(msg lint.Commit) (*lint.Issue, bool) { |
| 208 | return validateMaxLen("description", r.CheckLen, msg.Description()) |