Output of `make lint` (golangci-lint) for `internal/sshd/session.go` and `internal/sshd/session_test.go`
internal/sshd/session_test.go:11:2: import 'github.com/stretchr/testify/require' is not allowed from list 'Main' (depguard)
internal/sshd/session_test.go:14:2: import 'gitlab.com/gitlab-org/gitlab-shell/v14/client/testserver' is not allowed from list 'Main' (depguard)
internal/sshd/session_test.go:15:2: import 'gitlab.com/gitlab-org/gitlab-shell/v14/internal/config' is not allowed from list 'Main' (depguard)
internal/sshd/session_test.go:16:2: import 'gitlab.com/gitlab-org/gitlab-shell/v14/internal/console' is not allowed from list 'Main' (depguard)
internal/sshd/session_test.go:171:3: var-naming: struct field gitlabKeyId should be gitlabKeyID (revive)
internal/sshd/session_test.go:26:28: unused-parameter: parameter 'data' seems to be unused, consider removing or renaming it as _ (revive)
internal/sshd/session_test.go:42:48: unused-parameter: parameter 'wantReply' seems to be unused, consider removing or renaming it as _ (revive)
internal/sshd/session.go:1:1: ST1000: at least one file in a package should have a package comment (stylecheck)
internal/sshd/session.go:10:2: import 'gitlab.com/gitlab-org/labkit/log' is not allowed from list 'Main' (depguard)
internal/sshd/session.go:110:6: shadow: declaration of "envRequest" shadows declaration at line 45 (govet)
internal/sshd/session.go:138:87: (*session).handleExec - result 1 (bool) is always false (unparam)
internal/sshd/session.go:139:6: shadow: declaration of "execRequest" shadows declaration at line 41 (govet)
internal/sshd/session.go:15:2: import 'gitlab.com/gitlab-org/gitlab-shell/v14/cmd/gitlab-shell/command' is not allowed from list 'Main' (depguard)
internal/sshd/session.go:153: Function 'handleShell' is too long (72 > 60) (funlen)
internal/sshd/session.go:16:2: import 'gitlab.com/gitlab-org/gitlab-shell/v14/internal/command' is not allowed from list 'Main' (depguard)
internal/sshd/session.go:17:2: import 'gitlab.com/gitlab-org/gitlab-shell/v14/internal/command/readwriter' is not allowed from list 'Main' (depguard)
internal/sshd/session.go:18:2: import 'gitlab.com/gitlab-org/gitlab-shell/v14/internal/command/shared/disallowedcommand' is not allowed from list 'Main' (depguard)
internal/sshd/session.go:181:2: ifElseChain: rewrite if-else to switch statement (gocritic)
internal/sshd/session.go:19:2: import 'gitlab.com/gitlab-org/gitlab-shell/v14/internal/config' is not allowed from list 'Main' (depguard)
internal/sshd/session.go:20:2: import 'gitlab.com/gitlab-org/gitlab-shell/v14/internal/console' is not allowed from list 'Main' (depguard)
internal/sshd/session.go:21:2: import 'gitlab.com/gitlab-org/gitlab-shell/v14/internal/metrics' is not allowed from list 'Main' (depguard)
internal/sshd/session.go:212:19: context-keys-type: should not use basic type string as key in context.WithValue (revive)
internal/sshd/session.go:22:2: import 'gitlab.com/gitlab-org/gitlab-shell/v14/internal/sshenv' is not allowed from list 'Main' (depguard)
internal/sshd/session.go:238:22: Error return value of `s.channel.CloseWrite` is not checked (errcheck)
internal/sshd/session.go:239:23: Error return value of `s.channel.SendRequest` is not checked (errcheck)
internal/sshd/session.go:29:2: var-naming: struct field gitlabKeyId should be gitlabKeyID (revive)
internal/sshd/session.go:89:8: shadow: declaration of "err" shadows declaration at line 60 (govet)
internal/sshd/session.go:98:19: Error return value of `s.channel.Close` is not checked (errcheck)