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

Function formMaxLineLenDesc

lint/rule/rule.go:37–39  ·  view source on GitHub ↗
(typ string, expectedLen int)

Source from the content-addressed store, hash-verified

35}
36
37func formMaxLineLenDesc(typ string, expectedLen int) string {
38 return fmt.Sprintf("each %s line should have less than %d chars", typ, expectedLen)
39}
40
41func search(arr []string, toFind string) bool {
42 ind := sort.Search(len(arr), func(i int) bool {

Callers 1

validateMaxLineLengthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected