MCPcopy Index your code
hub / github.com/conventionalcommit/commitlint / searchNote

Function searchNote

rule/rule.go:47–52  ·  view source on GitHub ↗
(arr []lint.Note, toFind string)

Source from the content-addressed store, hash-verified

45}
46
47func searchNote(arr []lint.Note, toFind string) bool {
48 ind := sort.Search(len(arr), func(i int) bool {
49 return arr[i].Token() >= toFind
50 })
51 return ind < len(arr) && arr[ind].Token() == toFind
52}
53
54func validateCharset(allowedCharset, toCheck string) (string, bool) {
55 invalidRunes := ""

Callers 1

ValidateMethod · 0.85

Calls 1

TokenMethod · 0.65

Tested by

no test coverage detected