gitlabhq/gitlab-shell

View on GitHub
internal/sshd/session.go

Summary

Maintainability
A
1 hr
Test Coverage

Method session.handleShell has 55 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (s *session) handleShell(ctx context.Context, req *ssh.Request) (context.Context, uint32, error) {
    ctxlog := log.ContextLogger(ctx)

    if req.WantReply {
        if err := req.Reply(true, []byte{}); err != nil {
Severity: Minor
Found in internal/sshd/session.go - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status