gitlabhq/gitlab-shell

View on GitHub
internal/pktline/pktline.go

Summary

Maintainability
A
50 mins
Test Coverage

Function pktLineSplitter has 8 return statements (exceeds 4 allowed).
Open

func pktLineSplitter(data []byte, atEOF bool) (advance int, token []byte, err error) {
    if len(data) < 4 {
        if atEOF && len(data) > 0 {
            return 0, nil, fmt.Errorf("pktLineSplitter: incomplete length prefix on %q", data)
        }
Severity: Major
Found in internal/pktline/pktline.go - About 50 mins to fix

    There are no issues that match your filters.

    Category
    Status