cyberark/secrets-provider-for-k8s

View on GitHub
pkg/entrypoint/entrypoint.go

Summary

Maintainability
A
3 hrs
Test Coverage
B
85%

Function startSecretsProviderWithDeps has 51 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func startSecretsProviderWithDeps(
    annotationsFilePath string,
    secretsBasePath string,
    templatesBasePath string,
    retrieverFactory conjur.RetrieverFactory,
Severity: Minor
Found in pkg/entrypoint/entrypoint.go - About 1 hr to fix

    Function secretsProvider has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        ctx context.Context,
        tracer trace.Tracer,
        secretsBasePath string,
        templatesBasePath string,
        secretRetriever conjur.RetrieveSecretsFunc,
    Severity: Minor
    Found in pkg/entrypoint/entrypoint.go - About 45 mins to fix

      Function startSecretsProviderWithDeps has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          annotationsFilePath string,
          secretsBasePath string,
          templatesBasePath string,
          retrieverFactory conjur.RetrieverFactory,
          providerFactory secrets.ProviderFactory,
      Severity: Minor
      Found in pkg/entrypoint/entrypoint.go - About 45 mins to fix

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

        func startSecretsProviderWithDeps(
            annotationsFilePath string,
            secretsBasePath string,
            templatesBasePath string,
            retrieverFactory conjur.RetrieverFactory,
        Severity: Major
        Found in pkg/entrypoint/entrypoint.go - About 35 mins to fix

          There are no issues that match your filters.

          Category
          Status