(s lint.RuleSetting)
| 175 | |
| 176 | func (r *ScopeMaxLenRule) Name() string { return "scope-max-length" } |
| 177 | func (r *ScopeMaxLenRule) Apply(s lint.RuleSetting) error { |
| 178 | return applyIntArg(&r.CheckLen, r.Name(), s) |
| 179 | } |
| 180 | |
| 181 | func (r *ScopeMaxLenRule) Validate(msg lint.Commit) (*lint.Issue, bool) { |
| 182 | return validateMaxLen("scope", r.CheckLen, msg.Scope()) |