grokify/mogo

View on GitHub
encoding/basex/encoding.go

Summary

Maintainability
A
1 hr
Test Coverage

Avoid deeply nested control flow statements.
Open

    } else if !stringsutil.UniqueRunes(a2) {
        return errors.New("alphabet 2 chars are not unique")
    }
Severity: Major
Found in encoding/basex/encoding.go - About 45 mins to fix

    Function ValidAlphabets has 6 return statements (exceeds 4 allowed).
    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")
    Severity: Major
    Found in encoding/basex/encoding.go - About 40 mins to fix

      There are no issues that match your filters.

      Category
      Status