portainer/portainer

View on GitHub
pkg/libhelm/validate_repo.go

Summary

Maintainability
A
40 mins
Test Coverage

Function ValidateHelmRepositoryURL has 6 return statements (exceeds 4 allowed).
Open

func ValidateHelmRepositoryURL(repoUrl string, client *http.Client) error {
    if repoUrl == "" {
        return errors.New("URL is required")
    }

Severity: Major
Found in pkg/libhelm/validate_repo.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status