kubenetworks/kubevpn

View on GitHub
pkg/daemon/action/sshdaemon.go

Summary

Maintainability
A
2 hrs
Test Coverage

Method Server.SshStart has 64 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (svr *Server) SshStart(ctx context.Context, req *rpc.SshStartRequest) (resp *rpc.SshStartResponse, err error) {
    mux.Lock()
    defer mux.Unlock()

    var clientIP net.IP
Severity: Minor
Found in pkg/daemon/action/sshdaemon.go - About 1 hr to fix

    Method Server.SshStart has 6 return statements (exceeds 4 allowed).
    Open

    func (svr *Server) SshStart(ctx context.Context, req *rpc.SshStartRequest) (resp *rpc.SshStartResponse, err error) {
        mux.Lock()
        defer mux.Unlock()
    
        var clientIP net.IP
    Severity: Major
    Found in pkg/daemon/action/sshdaemon.go - About 40 mins to fix

      There are no issues that match your filters.

      Category
      Status