ScopeCaseRule validates that commit scope matches a given case format. An empty scope is always accepted (scope is optional by convention). Argument: one of the casing.* constants.
| 56 | // An empty scope is always accepted (scope is optional by convention). |
| 57 | // Argument: one of the casing.* constants. |
| 58 | type ScopeCaseRule struct{ Case string } |
| 59 | |
| 60 | func (r *ScopeCaseRule) Name() string { return "scope-case" } |
| 61 | func (r *ScopeCaseRule) Apply(s lint.RuleSetting) error { |
nothing calls this directly
no outgoing calls
no test coverage detected