MCPcopy Index your code
hub / github.com/conventionalcommit/commitlint / ScopeEnumRule

Struct ScopeEnumRule

rule/scope_enum.go:13–17  ·  view source on GitHub ↗

ScopeEnumRule to validate scope against a list of allowed values

Source from the content-addressed store, hash-verified

11
12// ScopeEnumRule to validate scope against a list of allowed values
13type ScopeEnumRule struct {
14 Scopes []string
15
16 AllowEmpty bool
17}
18
19// Name return name of the rule
20func (r *ScopeEnumRule) Name() string { return "scope-enum" }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected