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

Struct ScopeCaseRule

rule/case_rules.go:58–58  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

56// An empty scope is always accepted (scope is optional by convention).
57// Argument: one of the casing.* constants.
58type ScopeCaseRule struct{ Case string }
59
60func (r *ScopeCaseRule) Name() string { return "scope-case" }
61func (r *ScopeCaseRule) Apply(s lint.RuleSetting) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected