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

Method Apply

lint/rule/header_trim_rule.go:16–16  ·  view source on GitHub ↗
(_ lint.RuleSetting)

Source from the content-addressed store, hash-verified

14
15func (r *HeaderTrimRule) Name() string { return "header-trim" }
16func (r *HeaderTrimRule) Apply(_ lint.RuleSetting) error { return nil }
17func (r *HeaderTrimRule) Validate(msg lint.Commit) (*lint.Issue, bool) {
18 h := msg.Header()
19 if h == strings.TrimSpace(h) {

Calls

no outgoing calls