Preparing report...

Report for github.com/kubernetes/perf-tests

A+    Excellent!    Found 34 issues across 210 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!


gocyclo94%

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.


golint92%

Golint is a linter for Go source code.

    • perf-tests/clusterloader2/pkg/provider/aks.go
    • Line 23: warning: exported type AKSProvider should have comment or be unexported (golint)
    • Line 27: warning: exported function NewAKSProvider should have comment or be unexported (golint)
    • Line 38: warning: exported method AKSProvider.Name should have comment or be unexported (golint)
    • Line 42: warning: exported method AKSProvider.Features should have comment or be unexported (golint)
    • Line 46: warning: exported method AKSProvider.GetComponentProtocolAndPort should have comment or be unexported (golint)
    • Line 50: warning: exported method AKSProvider.GetConfig should have comment or be unexported (golint)
    • Line 54: warning: exported method AKSProvider.RunSSHCommand should have comment or be unexported (golint)
    • Line 58: warning: exported method AKSProvider.Metadata should have comment or be unexported (golint)
    • perf-tests/clusterloader2/pkg/provider/eks.go
    • Line 24: warning: exported type EKSProvider should have comment or be unexported (golint)
    • Line 28: warning: exported function NewEKSProvider should have comment or be unexported (golint)
    • Line 40: warning: exported method EKSProvider.Name should have comment or be unexported (golint)
    • Line 44: warning: exported method EKSProvider.Features should have comment or be unexported (golint)
    • Line 48: warning: exported method EKSProvider.GetComponentProtocolAndPort should have comment or be unexported (golint)
    • Line 52: warning: exported method EKSProvider.GetConfig should have comment or be unexported (golint)
    • Line 56: warning: exported method EKSProvider.RunSSHCommand should have comment or be unexported (golint)
    • Line 65: warning: exported method EKSProvider.Metadata should have comment or be unexported (golint)
    • perf-tests/clusterloader2/pkg/provider/gce.go
    • Line 31: warning: exported type GCEProvider should have comment or be unexported (golint)
    • Line 35: warning: exported function NewGCEProvider should have comment or be unexported (golint)
    • Line 52: warning: exported method GCEProvider.Name should have comment or be unexported (golint)
    • Line 56: warning: exported method GCEProvider.Features should have comment or be unexported (golint)
    • Line 60: warning: exported method GCEProvider.GetComponentProtocolAndPort should have comment or be unexported (golint)
    • Line 64: warning: exported method GCEProvider.GetConfig should have comment or be unexported (golint)
    • Line 68: warning: exported method GCEProvider.RunSSHCommand should have comment or be unexported (golint)
    • Line 77: warning: exported method GCEProvider.Metadata should have comment or be unexported (golint)
    • perf-tests/clusterloader2/pkg/provider/kubemark.go
    • Line 25: warning: exported type KubemarkProvider should have comment or be unexported (golint)
    • Line 30: warning: exported function NewKubemarkProvider should have comment or be unexported (golint)
    • Line 47: warning: exported method KubemarkProvider.Name should have comment or be unexported (golint)
    • Line 51: warning: exported method KubemarkProvider.Features should have comment or be unexported (golint)
    • Line 55: warning: exported method KubemarkProvider.GetComponentProtocolAndPort should have comment or be unexported (golint)
    • Line 59: warning: exported method KubemarkProvider.GetConfig should have comment or be unexported (golint)
    • Line 63: warning: exported method KubemarkProvider.RunSSHCommand should have comment or be unexported (golint)
    • Line 72: warning: comment on exported method KubemarkProvider.Metadata should be of the form "Metadata ..." (golint)
    • perf-tests/clusterloader2/pkg/provider/aws.go
    • Line 24: warning: exported type AWSProvider should have comment or be unexported (golint)
    • Line 28: warning: exported function NewAWSProvider should have comment or be unexported (golint)
    • Line 41: warning: exported method AWSProvider.Name should have comment or be unexported (golint)
    • Line 45: warning: exported method AWSProvider.Features should have comment or be unexported (golint)
    • Line 49: warning: exported method AWSProvider.GetComponentProtocolAndPort should have comment or be unexported (golint)
    • Line 53: warning: exported method AWSProvider.GetConfig should have comment or be unexported (golint)
    • Line 57: warning: exported method AWSProvider.RunSSHCommand should have comment or be unexported (golint)
    • Line 66: warning: exported method AWSProvider.Metadata should have comment or be unexported (golint)
    • perf-tests/clusterloader2/pkg/provider/skeleton.go
    • Line 24: warning: exported type SkeletonProvider should have comment or be unexported (golint)
    • Line 28: warning: exported function NewSkeletonProvider should have comment or be unexported (golint)
    • Line 41: warning: exported method SkeletonProvider.Name should have comment or be unexported (golint)
    • Line 45: warning: exported method SkeletonProvider.Features should have comment or be unexported (golint)
    • Line 49: warning: exported method SkeletonProvider.GetComponentProtocolAndPort should have comment or be unexported (golint)
    • Line 53: warning: exported method SkeletonProvider.GetConfig should have comment or be unexported (golint)
    • Line 57: warning: exported method SkeletonProvider.GetRootFrameworkKubeConfigOverride should have comment or be unexported (golint)
    • Line 61: warning: exported method SkeletonProvider.RunSSHCommand should have comment or be unexported (golint)
    • Line 70: warning: exported method SkeletonProvider.Metadata should have comment or be unexported (golint)
    • perf-tests/clusterloader2/pkg/provider/kind.go
    • Line 25: warning: exported type KindProvider should have comment or be unexported (golint)
    • Line 29: warning: exported function NewKindProvider should have comment or be unexported (golint)
    • Line 42: warning: exported method KindProvider.Name should have comment or be unexported (golint)
    • Line 46: warning: exported method KindProvider.Features should have comment or be unexported (golint)
    • Line 50: warning: exported method KindProvider.GetComponentProtocolAndPort should have comment or be unexported (golint)
    • Line 54: warning: exported method KindProvider.GetConfig should have comment or be unexported (golint)
    • Line 58: warning: exported method KindProvider.RunSSHCommand should have comment or be unexported (golint)
    • Line 64: warning: exported method KindProvider.Metadata should have comment or be unexported (golint)
    • perf-tests/clusterloader2/pkg/provider/vsphere.go
    • Line 24: warning: exported type VsphereProvider should have comment or be unexported (golint)
    • Line 28: warning: exported function NewVsphereProvider should have comment or be unexported (golint)
    • Line 41: warning: exported method VsphereProvider.Name should have comment or be unexported (golint)
    • Line 45: warning: exported method VsphereProvider.Features should have comment or be unexported (golint)
    • Line 49: warning: exported method VsphereProvider.GetComponentProtocolAndPort should have comment or be unexported (golint)
    • Line 53: warning: exported method VsphereProvider.GetConfig should have comment or be unexported (golint)
    • Line 57: warning: exported method VsphereProvider.RunSSHCommand should have comment or be unexported (golint)
    • Line 66: warning: exported method VsphereProvider.Metadata should have comment or be unexported (golint)
    • perf-tests/clusterloader2/pkg/provider/gke.go
    • Line 24: warning: exported type GKEProvider should have comment or be unexported (golint)
    • Line 28: warning: exported function NewGKEProvider should have comment or be unexported (golint)
    • Line 43: warning: exported method GKEProvider.Name should have comment or be unexported (golint)
    • Line 47: warning: exported method GKEProvider.Features should have comment or be unexported (golint)
    • Line 51: warning: exported method GKEProvider.GetComponentProtocolAndPort should have comment or be unexported (golint)
    • Line 55: warning: exported method GKEProvider.GetConfig should have comment or be unexported (golint)
    • Line 59: warning: exported method GKEProvider.RunSSHCommand should have comment or be unexported (golint)
    • Line 68: warning: exported method GKEProvider.Metadata should have comment or be unexported (golint)
    • perf-tests/clusterloader2/pkg/provider/local.go
    • Line 24: warning: exported type LocalProvider should have comment or be unexported (golint)
    • Line 28: warning: exported function NewLocalProvider should have comment or be unexported (golint)
    • Line 41: warning: exported method LocalProvider.Name should have comment or be unexported (golint)
    • Line 45: warning: exported method LocalProvider.Features should have comment or be unexported (golint)
    • Line 49: warning: exported method LocalProvider.GetComponentProtocolAndPort should have comment or be unexported (golint)
    • Line 53: warning: exported method LocalProvider.GetConfig should have comment or be unexported (golint)
    • Line 57: warning: exported method LocalProvider.RunSSHCommand should have comment or be unexported (golint)
    • Line 66: warning: exported method LocalProvider.Metadata should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


misspell97%

Misspell Finds commonly misspelled English words