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

Function search

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

Source from the content-addressed store, hash-verified

39}
40
41func search(arr []string, toFind string) bool {
42 ind := sort.Search(len(arr), func(i int) bool {
43 return arr[i] >= toFind
44 })
45 return ind < len(arr) && arr[ind] == toFind
46}
47
48func validateCharset(allowedCharset, toCheck string) (string, bool) {
49 invalidRunes := ""

Callers 5

ValidateMethod · 0.85
ValidateMethod · 0.85
checkFooterValuePrefixesFunction · 0.85
ValidateMethod · 0.85
ValidateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected