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

Struct HeadMaxLenRule

lint/rule/length_rules.go:46–46  ·  view source on GitHub ↗

HeadMaxLenRule to validate max length of header

Source from the content-addressed store, hash-verified

44
45// HeadMaxLenRule to validate max length of header
46type HeadMaxLenRule struct{ CheckLen int }
47
48func (r *HeadMaxLenRule) Name() string { return "header-max-length" }
49func (r *HeadMaxLenRule) Apply(s lint.RuleSetting) error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected