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

Struct TypeCaseRule

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

TypeCaseRule validates that commit type matches a given case format. Argument: one of the casing.* constants (e.g. casing.Lower).

Source from the content-addressed store, hash-verified

39// TypeCaseRule validates that commit type matches a given case format.
40// Argument: one of the casing.* constants (e.g. casing.Lower).
41type TypeCaseRule struct{ Case string }
42
43func (r *TypeCaseRule) Name() string { return "type-case" }
44func (r *TypeCaseRule) Apply(s lint.RuleSetting) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected