(s lint.RuleSetting)
| 59 | |
| 60 | func (r *ScopeCaseRule) Name() string { return "scope-case" } |
| 61 | func (r *ScopeCaseRule) Apply(s lint.RuleSetting) error { |
| 62 | return applyCaseArg(&r.Case, r.Name(), s) |
| 63 | } |
| 64 | |
| 65 | func (r *ScopeCaseRule) Validate(msg lint.Commit) (*lint.Issue, bool) { |
| 66 | // scope is optional; skip the check when absent |