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

Struct BodyCaseRule

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

BodyCaseRule validates that the commit body as a whole matches a given case format. An empty body always passes. Argument: one of the casing.* constants.

Source from the content-addressed store, hash-verified

94// format. An empty body always passes.
95// Argument: one of the casing.* constants.
96type BodyCaseRule struct{ Case string }
97
98func (r *BodyCaseRule) Name() string { return "body-case" }
99func (r *BodyCaseRule) Apply(s lint.RuleSetting) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected