(s lint.RuleSetting)
| 40 | |
| 41 | func (r *ScopeCharsetRule) Name() string { return "scope-charset" } |
| 42 | func (r *ScopeCharsetRule) Apply(s lint.RuleSetting) error { |
| 43 | return applyStringArg(&r.Charset, r.Name(), s) |
| 44 | } |
| 45 | |
| 46 | func (r *ScopeCharsetRule) Validate(msg lint.Commit) (*lint.Issue, bool) { |
| 47 | invalidChars, isValid := validateCharset(r.Charset, msg.Scope()) |