alibaba/kt-connect

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

Summary

Maintainability
A
35 mins
Test Coverage

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

func exchangeWithEphemeralContainer(exposePorts string, localSSHPort int, privateKey string) error {
    // Get all listened ports on remote host
    listenedPorts, err := getListenedPorts(localSSHPort, privateKey)
    if err != nil {
        return err
Severity: Major
Found in pkg/kt/command/exchange/ephemeral.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status