MCPcopy Create free account
hub / github.com/conventionalcommit/commitlint / TrailerExistsRule

Struct TrailerExistsRule

lint/rule/trailer_rules.go:42–42  ·  view source on GitHub ↗

TrailerExistsRule checks that at least one footer note has a token matching the configured value. This is a generalized version of signed-off-by: any trailer token can be required.

Source from the content-addressed store, hash-verified

40// This is a generalized version of signed-off-by: any trailer token can be
41// required.
42type TrailerExistsRule struct{ Value string }
43
44func (r *TrailerExistsRule) Name() string { return "trailer-exists" }
45func (r *TrailerExistsRule) Apply(s lint.RuleSetting) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected