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

Method Validate

lint/rule/trailer_rules.go:30–35  ·  view source on GitHub ↗
(msg lint.Commit)

Source from the content-addressed store, hash-verified

28}
29
30func (r *SignedOffByRule) Validate(msg lint.Commit) (*lint.Issue, bool) {
31 if hasTrailer(msg, r.Value) {
32 return nil, true
33 }
34 return lint.NewIssue("message must contain trailer " + r.Value), false
35}
36
37// TrailerExistsRule checks that at least one footer note has a token matching
38// the configured value.

Calls 2

NewIssueFunction · 0.92
hasTrailerFunction · 0.85