Preparing report...

Report for github.com/cert-manager/csi-driver

A    Great!    Found 24 issues across 35 files

Tweet

gofmt91%

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


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!


gocyclo97%

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.


golint31%

Golint is a linter for Go source code.

    • csi-driver/test/e2e/util/parse.go
    • Line 25: warning: exported function ParseDNSNames should have comment or be unexported (golint)
    • Line 29: warning: exported function ParseIPAddresses should have comment or be unexported (golint)
    • Line 48: warning: exported function ParseURIs should have comment or be unexported (golint)
    • Line 69: warning: exported function IPAddressesMatch should have comment or be unexported (golint)
    • Line 83: warning: exported function URIsMatch should have comment or be unexported (golint)
    • csi-driver/cmd/app/options/options.go
    • Line 28: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 69: warning: exported function New should have comment or be unexported (golint)
    • Line 73: warning: exported method Options.Prepare should have comment or be unexported (golint)
    • Line 78: warning: exported method Options.Complete should have comment or be unexported (golint)
    • csi-driver/test/e2e/framework/framework.go
    • Line 22: warning: should not use dot imports (golint)
    • Line 23: warning: should not use dot imports (golint)
    • Line 70: warning: exported function NewDefaultFramework should have comment or be unexported (golint)
    • Line 74: warning: exported function NewFramework should have comment or be unexported (golint)
    • Line 86: warning: exported method Framework.BeforeEach should have comment or be unexported (golint)
    • Line 145: warning: exported method Framework.Helper should have comment or be unexported (golint)
    • Line 149: warning: exported method Framework.RandomPod should have comment or be unexported (golint)
    • Line 197: warning: exported function CasesDescribe should have comment or be unexported (golint)
    • csi-driver/test/e2e/environment/environment.go
    • Line 25: warning: exported type Environment should have comment or be unexported (golint)
    • Line 32: warning: exported function Create should have comment or be unexported (golint)
    • Line 51: warning: exported method Environment.KubeClient should have comment or be unexported (golint)
    • Line 55: warning: exported method Environment.KubeConfigPath should have comment or be unexported (golint)
    • Line 59: warning: exported method Environment.RootPath should have comment or be unexported (golint)
    • Line 63: warning: exported method Environment.ClusterName should have comment or be unexported (golint)
    • csi-driver/test/e2e/framework/helper/certificaterequest.go
    • Line 38: warning: comment on exported method Helper.WaitForCertificateRequestsReady should be of the form "WaitForCertificateRequestsReady ..." (golint)
    • Line 78: warning: exported method Helper.FindCertificateRequestsReady should have comment or be unexported (golint)
    • Line 93: warning: exported method Helper.WaitForCertificateRequestDeletion should have comment or be unexported (golint)
    • csi-driver/test/e2e/framework/helper/kubectl.go
    • Line 26: warning: exported type Kubectl should have comment or be unexported (golint)
    • Line 32: warning: exported method Kubectl.Describe should have comment or be unexported (golint)
    • Line 37: warning: exported method Kubectl.DescribeResource should have comment or be unexported (golint)
    • Line 41: warning: exported method Helper.Kubectl should have comment or be unexported (golint)
    • Line 49: warning: exported method Kubectl.Run should have comment or be unexported (golint)
    • csi-driver/test/e2e/framework/helper/pod.go
    • Line 40: warning: exported method Helper.CertificateKeyInPodPath should have comment or be unexported (golint)
    • Line 67: warning: exported method Helper.CertificateKeyMatch should have comment or be unexported (golint)
    • Line 139: warning: exported method Helper.WaitForPodReady should have comment or be unexported (golint)
    • Line 173: warning: exported method Helper.WaitForPodDeletion should have comment or be unexported (golint)
    • csi-driver/test/e2e/util/csr.go
    • Line 29: warning: exported function CertificateRequestReady should have comment or be unexported (golint)
    • Line 43: warning: exported function KeyUsagesFromAttributes should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign0%

IneffAssign detects ineffectual assignments in Go code.

An error occurred while running this test (exit status 2)


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!