Showing 1 of 1 total issue
Method ruleSet.Validate
has 5 return statements (exceeds 4 allowed). Open
Open
func (r *ruleSet) Validate(input string) (err error) {
s := calcStats(input)
if !r.validLen(s.Len) {
return ErrBadLength