(s lint.RuleSetting)
| 189 | |
| 190 | func (r *DescriptionMinLenRule) Name() string { return "description-min-length" } |
| 191 | func (r *DescriptionMinLenRule) Apply(s lint.RuleSetting) error { |
| 192 | return applyIntArg(&r.CheckLen, r.Name(), s) |
| 193 | } |
| 194 | |
| 195 | func (r *DescriptionMinLenRule) Validate(msg lint.Commit) (*lint.Issue, bool) { |
| 196 | return validateMinLen("description", r.CheckLen, msg.Description()) |