Preparing report...

Report for github.com/kubism/testutil

A+    Excellent!    Found 8 issues across 19 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!


gocyclo100%

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.

No problems detected. Good job!


golint57%

Golint is a linter for Go source code.

    • testutil/pkg/rand/string.go
    • Line 28: warning: exported function StringWithCharset should have comment or be unexported (golint)
    • Line 36: warning: exported function String should have comment or be unexported (golint)
    • testutil/pkg/kind/kind.go
    • Line 34: warning: comment on exported type Config should be of the form "Config ..." (with optional leading article) (golint)
    • Line 36: warning: exported type DebugLog should have comment or be unexported (golint)
    • Line 82: warning: exported type ClusterOption should have comment or be unexported (golint)
    • Line 92: warning: exported function ClusterWithName should have comment or be unexported (golint)
    • Line 98: warning: exported function ClusterUseExisting should have comment or be unexported (golint)
    • Line 104: warning: exported function ClusterDoNotDelete should have comment or be unexported (golint)
    • Line 110: warning: exported function ClusterWithWaitForReady should have comment or be unexported (golint)
    • Line 116: warning: exported function ClusterWithConfig should have comment or be unexported (golint)
    • Line 122: warning: exported function ClusterWithDocker should have comment or be unexported (golint)
    • Line 128: warning: exported function ClusterWithPodman should have comment or be unexported (golint)
    • Line 134: warning: exported function ClusterWithDebugLog should have comment or be unexported (golint)
    • Line 140: warning: exported type Cluster should have comment or be unexported (golint)
    • Line 146: warning: exported function NewCluster should have comment or be unexported (golint)
    • Line 186: warning: exported method Cluster.GetKubeConfig should have comment or be unexported (golint)
    • Line 190: warning: exported method Cluster.GetKubeConfigAsTempFile should have comment or be unexported (golint)
    • Line 198: warning: exported method Cluster.GetRESTConfig should have comment or be unexported (golint)
    • Line 206: warning: exported method Cluster.GetClient should have comment or be unexported (golint)
    • Line 214: warning: exported method Cluster.Close should have comment or be unexported (golint)
    • Line 217: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • testutil/pkg/fs/temp.go
    • Line 29: warning: exported type TempFile should have comment or be unexported (golint)
    • Line 57: warning: exported type TempDir should have comment or be unexported (golint)
    • testutil/pkg/helm/helm.go
    • Line 277: warning: comment on exported type InstallOption should be of the form "InstallOption ..." (with optional leading article) (golint)
    • testutil/pkg/kube/kube.go
    • Line 49: warning: exported const PortAny should have comment or be unexported (golint)
    • Line 74: warning: comment on exported type Condition should be of the form "Condition ..." (with optional leading article) (golint)
    • Line 103: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 128: warning: exported type PortForward should have comment or be unexported (golint)
    • Line 138: warning: exported method Client.PortForward should have comment or be unexported (golint)
    • Line 181: warning: exported method PortForward.Close should have comment or be unexported (golint)
    • Line 186: warning: exported method Client.Logs should have comment or be unexported (golint)
    • Line 192: warning: exported method Client.LogsString should have comment or be unexported (golint)
    • Line 226: warning: exported method Client.Events should have comment or be unexported (golint)
    • Line 239: warning: exported method Client.ListForOwner should have comment or be unexported (golint)
    • Line 268: warning: exported method Client.WaitUntil should have comment or be unexported (golint)
    • Line 284: warning: exported function IsPodReady should have comment or be unexported (golint)
    • Line 296: warning: exported function PodIsReady should have comment or be unexported (golint)
    • Line 312: warning: exported function IsDeploymentScheduled should have comment or be unexported (golint)
    • Line 317: warning: exported function IsDeploymentReady should have comment or be unexported (golint)
    • Line 322: warning: exported function IsDeploymentUpdated should have comment or be unexported (golint)
    • Line 327: warning: exported function DeploymentIsScheduled should have comment or be unexported (golint)
    • Line 336: warning: exported function DeploymentIsReady should have comment or be unexported (golint)
    • Line 345: warning: exported function DeploymentIsUpdated should have comment or be unexported (golint)
    • Line 361: warning: exported function IsReplicaSetAvailable should have comment or be unexported (golint)
    • Line 366: warning: exported function IsReplicaSetReady should have comment or be unexported (golint)
    • Line 371: warning: exported function ReplicaSetIsAvailable should have comment or be unexported (golint)
    • Line 380: warning: exported function ReplicaSetIsReady should have comment or be unexported (golint)
    • Line 389: warning: exported function IsJobActive should have comment or be unexported (golint)
    • Line 393: warning: exported function JobIsActive should have comment or be unexported (golint)
    • Line 402: warning: exported function IsCronJobActive should have comment or be unexported (golint)
    • Line 412: warning: exported function CronJobIsActive should have comment or be unexported (golint)
    • Line 457: warning: comment on exported function NamespacedName should be of the form "NamespacedName ..." (golint)
    • Line 470: warning: exported function PodWithNamespacedName should have comment or be unexported (golint)
    • Line 479: warning: exported function ReplicaSetWithNamespacedName should have comment or be unexported (golint)
    • Line 488: warning: exported function DeploymentWithNamespacedName should have comment or be unexported (golint)
    • Line 497: warning: exported function JobWithNamespacedName should have comment or be unexported (golint)
    • Line 506: warning: exported function CronJobWithNamespacedName 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!