gitlabhq/gitlab-shell

View on GitHub
internal/sshd/sshd_test.go

Summary

Maintainability
B
5 hrs
Test Coverage

Function TestListenAndServe_proxyProtocolEnabled has 151 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func TestListenAndServe_proxyProtocolEnabled(t *testing.T) {
    testRoot := testhelper.PrepareTestRootDir(t)

    target, err := net.ResolveTCPAddr("tcp", serverURL)
    require.NoError(t, err)
Severity: Major
Found in internal/sshd/sshd_test.go - About 5 hrs to fix

    There are no issues that match your filters.

    Category
    Status