(s lint.RuleSetting)
| 163 | |
| 164 | func (r *ScopeMinLenRule) Name() string { return "scope-min-length" } |
| 165 | func (r *ScopeMinLenRule) Apply(s lint.RuleSetting) error { |
| 166 | return applyIntArg(&r.CheckLen, r.Name(), s) |
| 167 | } |
| 168 | |
| 169 | func (r *ScopeMinLenRule) Validate(msg lint.Commit) (*lint.Issue, bool) { |
| 170 | return validateMinLen("scope", r.CheckLen, msg.Scope()) |