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

Struct HeaderTrimRule

lint/rule/header_trim_rule.go:13–13  ·  view source on GitHub ↗

HeaderTrimRule checks that the header has no leading or trailing whitespace.

Source from the content-addressed store, hash-verified

11
12// HeaderTrimRule checks that the header has no leading or trailing whitespace.
13type HeaderTrimRule struct{}
14
15func (r *HeaderTrimRule) Name() string { return "header-trim" }
16func (r *HeaderTrimRule) Apply(_ lint.RuleSetting) error { return nil }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected