Output of `make lint` (golangci-lint) for `internal/sshd/server_config.go` and `internal/sshd/server_config_test.go`
internal/sshd/server_config_test.go:17:2: import 'github.com/stretchr/testify/require' is not allowed from list 'Main' (depguard)
internal/sshd/server_config_test.go:20:2: import 'gitlab.com/gitlab-org/gitlab-shell/v14/client' is not allowed from list 'Main' (depguard)
internal/sshd/server_config_test.go:21:2: import 'gitlab.com/gitlab-org/gitlab-shell/v14/client/testserver' is not allowed from list 'Main' (depguard)
internal/sshd/server_config_test.go:22:2: import 'gitlab.com/gitlab-org/gitlab-shell/v14/internal/config' is not allowed from list 'Main' (depguard)
internal/sshd/server_config_test.go:23:2: import 'gitlab.com/gitlab-org/gitlab-shell/v14/internal/testhelper' is not allowed from list 'Main' (depguard)
internal/sshd/server_config_test.go:316:2: expected-actual: need to reverse actual and expected values (testifylint)
internal/sshd/server_config_test.go:323:2: expected-actual: need to reverse actual and expected values (testifylint)
internal/sshd/server_config_test.go:5:2: SA1019: "crypto/dsa" has been deprecated since Go 1.16 because it shouldn't be used: DSA is a legacy algorithm, and modern alternatives such as Ed25519 (implemented by package crypto/ed25519) should be used instead. Keys with 1024-bit moduli (L1024N160 parameters) are cryptographically weak, while bigger keys are not widely supported. Note that FIPS 186-5 no longer approves DSA for signature generation. (staticcheck)
internal/sshd/server_config_test.go:63:2: declaration has 3 blank identifiers (dogsled)
internal/sshd/server_config.go:1:1: ST1000: at least one file in a package should have a package comment (stylecheck)
internal/sshd/server_config.go:129:15: ST1005: error strings should not be capitalized (stylecheck)
internal/sshd/server_config.go:14:2: import 'gitlab.com/gitlab-org/gitlab-shell/v14/internal/config' is not allowed from list 'Main' (depguard)
internal/sshd/server_config.go:15:2: import 'gitlab.com/gitlab-org/gitlab-shell/v14/internal/gitlabnet/authorizedcerts' is not allowed from list 'Main' (depguard)
internal/sshd/server_config.go:16:2: import 'gitlab.com/gitlab-org/gitlab-shell/v14/internal/gitlabnet/authorizedkeys' is not allowed from list 'Main' (depguard)
internal/sshd/server_config.go:18:2: import 'gitlab.com/gitlab-org/labkit/log' is not allowed from list 'Main' (depguard)
internal/sshd/server_config.go:235:4: shadow: declaration of "ctx" shadows declaration at line 211 (govet)
internal/sshd/server_config.go:53:18: G304: Potential file inclusion via variable (gosec)
internal/sshd/server_config.go:79:18: G304: Potential file inclusion via variable (gosec)