Preparing report...

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

A    Great!    Found 16 issues across 36 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!


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!


golint61%

Golint is a linter for Go source code.

    • csi-driver-spiffe/test/e2e/framework/config/config.go
    • Line 35: warning: exported function SetConfig should have comment or be unexported (golint)
    • Line 39: warning: exported function GetConfig should have comment or be unexported (golint)
    • Line 43: warning: exported type Config should have comment or be unexported (golint)
    • Line 53: warning: exported method Config.AddFlags should have comment or be unexported (golint)
    • Line 57: warning: exported method Config.Complete should have comment or be unexported (golint)
    • csi-driver-spiffe/test/e2e/framework/framework.go
    • Line 24: warning: should not use dot imports (golint)
    • Line 25: warning: should not use dot imports (golint)
    • Line 33: warning: exported type Framework should have comment or be unexported (golint)
    • Line 44: warning: exported function NewDefaultFramework should have comment or be unexported (golint)
    • Line 48: warning: exported function NewFramework should have comment or be unexported (golint)
    • Line 60: warning: exported method Framework.BeforeEach should have comment or be unexported (golint)
    • Line 73: warning: exported method Framework.AfterEach should have comment or be unexported (golint)
    • Line 78: warning: exported method Framework.Config should have comment or be unexported (golint)
    • Line 82: warning: exported method Framework.Client should have comment or be unexported (golint)
    • Line 86: warning: exported method Framework.Context should have comment or be unexported (golint)
    • Line 90: warning: exported function CasesDescribe should have comment or be unexported (golint)
    • csi-driver-spiffe/internal/flags/flags.go
    • Line 27: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 34: warning: exported type RegisterFunc should have comment or be unexported (golint)
    • Line 53: warning: exported function New should have comment or be unexported (golint)
    • Line 59: warning: exported method Flags.Add should have comment or be unexported (golint)
    • Line 64: warning: exported method Flags.Prepare should have comment or be unexported (golint)
    • Line 69: warning: exported method Flags.Complete should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


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!