alibaba/kt-connect

View on GitHub
pkg/kt/service/sshchannel/ssh.go

Summary

Maintainability
A
35 mins
Test Coverage

Method Cli.RunScript has 5 return statements (exceeds 4 allowed).
Open

func (c *Cli) RunScript(privateKey, sshAddress, script string) (result string, err error) {
    dialer, err := sshproxy.NewDialer(getSshTunnelAddress(privateKey, sshAddress))
    if err != nil {
        return "", err
    }
Severity: Major
Found in pkg/kt/service/sshchannel/ssh.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status