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

Function hasTrailer

lint/rule/trailer_rules.go:62–69  ·  view source on GitHub ↗
(msg lint.Commit, token string)

Source from the content-addressed store, hash-verified

60}
61
62func hasTrailer(msg lint.Commit, token string) bool {
63 for i := 0; i < msg.NoteCount(); i++ {
64 if msg.NoteAt(i).Token() == token {
65 return true
66 }
67 }
68 return false
69}

Callers 3

ValidateMethod · 0.85
ValidateMethod · 0.85
ValidateMethod · 0.85

Calls 3

NoteCountMethod · 0.65
TokenMethod · 0.65
NoteAtMethod · 0.65

Tested by

no test coverage detected