(s lint.RuleSetting)
| 149 | |
| 150 | func (r *TypeMaxLenRule) Name() string { return "type-max-length" } |
| 151 | func (r *TypeMaxLenRule) Apply(s lint.RuleSetting) error { |
| 152 | return applyIntArg(&r.CheckLen, r.Name(), s) |
| 153 | } |
| 154 | |
| 155 | func (r *TypeMaxLenRule) Validate(msg lint.Commit) (*lint.Issue, bool) { |
| 156 | return validateMaxLen("type", r.CheckLen, msg.Type()) |