utils/utils.go

Summary

Maintainability
A
1 hr
Test Coverage

Function Stringify has 6 return statements (exceeds 4 allowed).
Open

func Stringify(object interface{}) string {
    if obj, ok := object.(interface {
        Stringify() string
    }); ok {
        return obj.Stringify()
Severity: Major
Found in utils/utils.go - About 40 mins to fix

    Function SortFormKeys has 5 return statements (exceeds 4 allowed).
    Open

    func SortFormKeys(strs []string) {
        sort.Slice(strs, func(i, j int) bool { // true for first
            str1 := strs[i]
            str2 := strs[j]
            matched1 := replaceIdxRegexp.FindAllStringIndex(str1, -1)
    Severity: Major
    Found in utils/utils.go - About 35 mins to fix

      Your code does not pass gofmt in 5 places. Go fmt your code!
      Open

      package utils
      Severity: Minor
      Found in utils/utils.go by gofmt

      There are no issues that match your filters.

      Category
      Status