Skip to content

chore: Fix lint issues in cmd/gitlab-sshd/acceptance_test.go

Fix lint issues in cmd/gitlab-sshd/acceptance_test.go

Issue: #705

The following issues have been fixed:

cmd/gitlab-sshd/acceptance_test.go:43:2: var-naming: const testRepoImportUrl should be testRepoImportURL (revive)
        testRepoImportUrl = "https://gitlab.com/gitlab-org/gitlab-test.git"
        ^
cmd/gitlab-sshd/acceptance_test.go:199:22: var-naming: func parameter gitlabUrl should be gitlabURL (revive)
func genServerConfig(gitlabUrl, hostKeyPath string) []byte {
                     ^
cmd/gitlab-sshd/acceptance_test.go:130:18: unused-parameter: parameter 'w' seems to be unused, consider removing or renaming it as _ (revive)
                        Handler: func(w http.ResponseWriter, r *http.Request) {
                                      ^
cmd/gitlab-sshd/acceptance_test.go:135:5: expected-actual: need to reverse actual and expected values (testifylint)
                                require.Equal(t, string(body), "0000")
                                ^

Merge request reports

Loading