opencontrol/compliance-masonry

View on GitHub
pkg/cli/get/resources/getter.go

Summary

Maintainability
A
1 hr
Test Coverage

Method vcsAndLocalFSGetter.GetLocalResources has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

func (g *vcsAndLocalFSGetter) GetLocalResources(source string, resources []string, destination string,
    subfolder string, recursively bool, resourceType constants.ResourceType) error {
Severity: Minor
Found in pkg/cli/get/resources/getter.go - About 45 mins to fix

    Method vcsAndLocalFSGetter.GetRemoteResources has 6 return statements (exceeds 4 allowed).
    Open

    func (g *vcsAndLocalFSGetter) GetRemoteResources(destination string, subfolder string,
        entries []common.RemoteSource) error {
        // Create the temporary directory for where to clone all the remote resources.
        tempResourcesDir, err := g.FSUtil.TempDir("", "opencontrol-resources")
        if err != nil {
    Severity: Major
    Found in pkg/cli/get/resources/getter.go - About 40 mins to fix

      There are no issues that match your filters.

      Category
      Status