Preparing report...

Report for github.com/kubernetes-sigs/krew

A+    Excellent!    Found 16 issues across 78 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!


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.


golint83%

Golint is a linter for Go source code.

    • krew/internal/testutil/plugin.go
    • Line 42: warning: exported type P should have comment or be unexported (golint)
    • Line 43: warning: exported type R should have comment or be unexported (golint)
    • Line 60: warning: exported method P.WithName should have comment or be unexported (golint)
    • Line 61: warning: exported method P.WithShortDescription should have comment or be unexported (golint)
    • Line 62: warning: exported method P.WithTypeMeta should have comment or be unexported (golint)
    • Line 63: warning: exported method P.WithPlatforms should have comment or be unexported (golint)
    • Line 64: warning: exported method P.WithVersion should have comment or be unexported (golint)
    • Line 65: warning: exported method P.V should have comment or be unexported (golint)
    • Line 67: warning: exported function NewPlatform should have comment or be unexported (golint)
    • Line 81: warning: exported method R.WithOS should have comment or be unexported (golint)
    • Line 86: warning: exported method R.WithOSes should have comment or be unexported (golint)
    • Line 94: warning: exported method R.WithOSArch should have comment or be unexported (golint)
    • Line 99: warning: exported method R.WithSelector should have comment or be unexported (golint)
    • Line 100: warning: exported method R.WithFiles should have comment or be unexported (golint)
    • Line 101: warning: exported method R.WithBin should have comment or be unexported (golint)
    • Line 102: warning: exported method R.WithURI should have comment or be unexported (golint)
    • Line 103: warning: exported method R.WithSHA256 should have comment or be unexported (golint)
    • Line 104: warning: exported method R.V should have comment or be unexported (golint)
    • krew/internal/testutil/receipt.go
    • Line 22: warning: exported type Receipt should have comment or be unexported (golint)
    • Line 35: warning: exported method Receipt.WithPlugin should have comment or be unexported (golint)
    • Line 36: warning: exported method Receipt.WithStatus should have comment or be unexported (golint)
    • Line 37: warning: exported method Receipt.V should have comment or be unexported (golint)
    • krew/internal/testutil/tempdir.go
    • Line 30: warning: exported type TempDir should have comment or be unexported (golint)
    • Line 71: warning: exported method TempDir.WriteYAML should have comment or be unexported (golint)
    • Line 80: warning: exported method TempDir.InitEmptyGitRepo should have comment or be unexported (golint)
    • krew/site/functions/server/main.go
    • Line 58: warning: exported type PluginCountResponse should have comment or be unexported (golint)
    • Line 72: warning: exported type ErrorResponse should have comment or be unexported (golint)
    • Line 76: warning: exported type PluginsResponse 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!


misspell98%

Misspell Finds commonly misspelled English words