Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
62
func
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
Validate
Method · 0.85
Validate
Method · 0.85
Validate
Method · 0.85
Calls
3
NoteCount
Method · 0.65
Token
Method · 0.65
NoteAt
Method · 0.65
Tested by
no test coverage detected