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

Struct HeaderCaseRule

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

HeaderCaseRule validates that the commit header matches a given case format. Argument: one of the casing.* constants.

Source from the content-addressed store, hash-verified

114// HeaderCaseRule validates that the commit header matches a given case format.
115// Argument: one of the casing.* constants.
116type HeaderCaseRule struct{ Case string }
117
118func (r *HeaderCaseRule) Name() string { return "header-case" }
119func (r *HeaderCaseRule) Apply(s lint.RuleSetting) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected