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

Function errInvalidFlag

lint/rule/rule.go:25–27  ·  view source on GitHub ↗
(ruleName, flagName string, err error)

Source from the content-addressed store, hash-verified

23}
24
25func errInvalidFlag(ruleName, flagName string, err error) error {
26 return fmt.Errorf("%s: invalid flag '%s': %v", ruleName, flagName, err)
27}
28
29func formMinLenMsg(typ string, actualLen, expectedLen int) string {
30 return fmt.Sprintf("%s length is %d, should have at least %d chars", typ, actualLen, expectedLen)

Callers 1

ApplyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected