encoding/basex/encoding.go
Avoid deeply nested control flow statements. Open
Open
} else if !stringsutil.UniqueRunes(a2) {
return errors.New("alphabet 2 chars are not unique")
}
Function ValidAlphabets
has 6 return statements (exceeds 4 allowed). Open
Open
func ValidAlphabets(a1, a2 string, a2optional bool) error {
if a1 == "" {
return errors.New("alphabet 1 cannot be empty")
} else if !stringsutil.UniqueRunes(a1) {
return errors.New("alphabet 1 chars are not unique")