gitlabhq/gitlab-shell

View on GitHub
cmd/gitlab-shell-authorized-keys-check/main.go

Summary

Maintainability
A
35 mins
Test Coverage

Function execute has 5 return statements (exceeds 4 allowed).
Open

func execute(readWriter *readwriter.ReadWriter) (int, error) {
    executable, err := executable.New(executable.AuthorizedKeysCheck)
    if err != nil {
        return exitCodeFailure, fmt.Errorf("failed to determine executable, exiting")
    }
Severity: Major
Found in cmd/gitlab-shell-authorized-keys-check/main.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status