alibaba/kt-connect

View on GitHub
pkg/kt/command/exchange/selector.go

Summary

Maintainability
A
55 mins
Test Coverage

Function BySelector has 9 return statements (exceeds 4 allowed).
Open

func BySelector(resourceName string) error {
    // Get service to exchange
    svc, err := general.GetServiceByResourceName(resourceName, opt.Get().Global.Namespace)
    if err != nil {
        return err
Severity: Major
Found in pkg/kt/command/exchange/selector.go - About 55 mins to fix

    There are no issues that match your filters.

    Category
    Status