Preparing report...

Report for kubepack.dev/lib-helm

A+    Excellent!    Found 22 issues across 49 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo81%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.


golint63%

Golint is a linter for Go source code.

    • /kubepack.dev/lib-helm/lib.go
    • Line 12: warning: exported function ListReleases should have comment or be unexported (golint)
    • Line 23: warning: exported function UninstallRelease should have comment or be unexported (golint)
    • /kubepack.dev/lib-helm/pkg/chart/lib.go
    • Line 20: warning: exported function GetChangedValues should have comment or be unexported (golint)
    • Line 117: warning: exported function PrintArray should have comment or be unexported (golint)
    • Line 198: warning: exported function IsEvent should have comment or be unexported (golint)
    • /kubepack.dev/lib-helm/pkg/action/install.go
    • Line 22: warning: exported type InstallOptions should have comment or be unexported (golint)
    • Line 45: warning: exported type Installer should have comment or be unexported (golint)
    • Line 53: warning: exported function NewInstaller should have comment or be unexported (golint)
    • Line 65: warning: exported function NewInstallerForConfig should have comment or be unexported (golint)
    • Line 71: warning: exported method Installer.WithOptions should have comment or be unexported (golint)
    • Line 76: warning: exported method Installer.WithRegistry should have comment or be unexported (golint)
    • Line 81: warning: exported method Installer.Run should have comment or be unexported (golint)
    • Line 175: warning: exported method Installer.Do should have comment or be unexported (golint)
    • Line 181: warning: exported method Installer.Result should have comment or be unexported (golint)
    • /kubepack.dev/lib-helm/pkg/action/list.go
    • Line 10: warning: exported type ListOptions should have comment or be unexported (golint)
    • Line 28: warning: exported type Lister should have comment or be unexported (golint)
    • Line 35: warning: exported function NewLister should have comment or be unexported (golint)
    • Line 47: warning: exported function NewListerForConfig should have comment or be unexported (golint)
    • Line 53: warning: exported method Lister.WithOptions should have comment or be unexported (golint)
    • Line 58: warning: exported method Lister.Run should have comment or be unexported (golint)
    • Line 80: warning: exported method Lister.Do should have comment or be unexported (golint)
    • Line 86: warning: exported method Lister.Result should have comment or be unexported (golint)
    • /kubepack.dev/lib-helm/pkg/action/uninstall.go
    • Line 12: warning: exported type UninstallOptions should have comment or be unexported (golint)
    • Line 19: warning: exported type Uninstaller should have comment or be unexported (golint)
    • Line 27: warning: exported function NewUninstaller should have comment or be unexported (golint)
    • Line 39: warning: exported function NewUninstallerForConfig should have comment or be unexported (golint)
    • Line 45: warning: exported method Uninstaller.WithOptions should have comment or be unexported (golint)
    • Line 50: warning: exported method Uninstaller.WithReleaseName should have comment or be unexported (golint)
    • Line 55: warning: exported method Uninstaller.Run should have comment or be unexported (golint)
    • Line 65: warning: exported method Uninstaller.Do should have comment or be unexported (golint)
    • Line 71: warning: exported method Uninstaller.Result should have comment or be unexported (golint)
    • /kubepack.dev/lib-helm/pkg/action/upgrade.go
    • Line 22: warning: exported type UpgradeOptions should have comment or be unexported (golint)
    • Line 44: warning: exported type Upgrader should have comment or be unexported (golint)
    • Line 53: warning: exported function NewUpgrader should have comment or be unexported (golint)
    • Line 65: warning: exported function NewUpgraderForConfig should have comment or be unexported (golint)
    • Line 71: warning: exported method Upgrader.WithOptions should have comment or be unexported (golint)
    • Line 76: warning: exported method Upgrader.WithRegistry should have comment or be unexported (golint)
    • Line 81: warning: exported method Upgrader.WithReleaseName should have comment or be unexported (golint)
    • Line 86: warning: exported method Upgrader.Run should have comment or be unexported (golint)
    • Line 175: warning: exported method Upgrader.Do should have comment or be unexported (golint)
    • Line 181: warning: exported method Upgrader.Result should have comment or be unexported (golint)
    • /kubepack.dev/lib-helm/pkg/action/deploy.go
    • Line 16: warning: exported type DeployOptions should have comment or be unexported (golint)
    • Line 42: warning: exported type Deployer should have comment or be unexported (golint)
    • Line 50: warning: exported function NewDeployer should have comment or be unexported (golint)
    • Line 62: warning: exported function NewDeployerForConfig should have comment or be unexported (golint)
    • Line 68: warning: exported method Deployer.WithOptions should have comment or be unexported (golint)
    • Line 73: warning: exported method Deployer.WithRegistry should have comment or be unexported (golint)
    • Line 78: warning: exported method Deployer.Run should have comment or be unexported (golint)
    • Line 139: warning: exported method Deployer.Do should have comment or be unexported (golint)
    • Line 145: warning: exported method Deployer.Result should have comment or be unexported (golint)
    • /kubepack.dev/lib-helm/pkg/storage/driver/app_util.go
    • Line 286: warning: exported function EditorChartValueManifest should have comment or be unexported (golint)
    • Line 341: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 407: warning: exported type EditorTemplate should have comment or be unexported (golint)
    • Line 412: warning: exported function ResourceKey should have comment or be unexported (golint)
    • Line 440: warning: exported function ResourceFilename should have comment or be unexported (golint)
    • /kubepack.dev/lib-helm/pkg/repo/reponame.go
    • Line 35: warning: exported var DefaultNamer should have comment or be unexported (golint)
    • Line 37: warning: exported type Hub should have comment or be unexported (golint)
    • Line 41: warning: exported type Repository should have comment or be unexported (golint)
    • Line 46: warning: exported type RepoNamer should have comment or be unexported (golint)
    • Line 53: warning: exported function NewCachedRepoNamer should have comment or be unexported (golint)
    • Line 146: warning: exported method RepoNamer.ListHelmHubRepositories should have comment or be unexported (golint)
    • Line 163: warning: exported method RepoNamer.Name should have comment or be unexported (golint)
    • /kubepack.dev/lib-helm/pkg/repo/registry.go
    • Line 38: warning: exported type Registry should have comment or be unexported (golint)
    • Line 44: warning: exported function NewCachedRegistry should have comment or be unexported (golint)
    • Line 48: warning: exported function NewRegistry should have comment or be unexported (golint)
    • Line 52: warning: exported function NewMemoryCacheRegistry should have comment or be unexported (golint)
    • Line 56: warning: exported function NewDiskCacheRegistry should have comment or be unexported (golint)
    • Line 62: warning: exported method Registry.Add should have comment or be unexported (golint)
    • Line 76: warning: exported method Registry.Get should have comment or be unexported (golint)
    • Line 99: warning: exported method Registry.Delete should have comment or be unexported (golint)
    • Line 165: warning: exported method Registry.GetChart should have comment or be unexported (golint)
    • /kubepack.dev/lib-helm/pkg/kube/client.go
    • Line 32: warning: exported type Client should have comment or be unexported (golint)
    • Line 39: warning: exported function New should have comment or be unexported (golint)
    • Line 59: warning: exported method Client.Create should have comment or be unexported (golint)
    • Line 72: warning: exported method Client.Wait should have comment or be unexported (golint)
    • Line 82: warning: exported method Client.WaitWithJobs should have comment or be unexported (golint)
    • Line 101: warning: exported method Client.Delete should have comment or be unexported (golint)
    • Line 105: warning: exported method Client.WatchUntilReady should have comment or be unexported (golint)
    • Line 118: warning: don't use underscores in Go names; method parameter original_nee_current should be originalNeeCurrent (golint)
    • Line 199: warning: exported method Client.Build should have comment or be unexported (golint)
    • Line 203: warning: exported method Client.WaitAndGetCompletedPodPhase should have comment or be unexported (golint)
    • Line 207: warning: exported method Client.IsReachable should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!