pkg/config/common.go

Summary

Maintainability
A
35 mins
Test Coverage
D
61%

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

func InterfaceToStringArray(stringOrStringArray, configSection interface{}, doc *doc) ([]string, error) {
    if stringOrStringArray == nil {
        return []string{}, nil
    } else if val, ok := stringOrStringArray.(string); ok {
        return []string{val}, nil
Severity: Major
Found in pkg/config/common.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status