portainer/portainer

View on GitHub
api/git/git.go

Summary

Maintainability
A
35 mins
Test Coverage

Method gitClient.listFiles has 5 return statements (exceeds 4 allowed).
Open

func (c *gitClient) listFiles(ctx context.Context, opt fetchOption) ([]string, error) {
    cloneOption := &git.CloneOptions{
        URL:             opt.repositoryUrl,
        NoCheckout:      true,
        Depth:           1,
Severity: Major
Found in api/git/git.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status