Preparing report...

Report for github.com/little-angry-clouds/kubernetes-binaries-managers

A+    Excellent!    Found 11 issues across 17 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!


golint35%

Golint is a linter for Go source code.

    • kubernetes-binaries-managers/internal/versions/versions.go
    • Line 18: warning: should not use dot imports (golint)
    • Line 22: warning: exported type Page should have comment or be unexported (golint)
    • Line 26: warning: exported function SortVersions should have comment or be unexported (golint)
    • Line 60: warning: exported function PrintVersions should have comment or be unexported (golint)
    • Line 66: warning: exported function GetLocalVersions should have comment or be unexported (golint)
    • Line 93: warning: exported function GetRemoteVersions should have comment or be unexported (golint)
    • kubernetes-binaries-managers/internal/cmd/root.go
    • Line 10: warning: exported var BinaryDownloadURL should have comment or be unexported (golint)
    • Line 11: warning: exported var VersionsAPI should have comment or be unexported (golint)
    • Line 12: warning: exported var RootCmd should have comment or be unexported (golint)
    • Line 13: warning: exported var BinaryToInstall should have comment or be unexported (golint)
    • Line 16: warning: exported function Execute should have comment or be unexported (golint)
    • kubernetes-binaries-managers/internal/helpers/helpers.go
    • Line 23: warning: exported function CheckHTTPError should have comment or be unexported (golint)
    • Line 45: warning: comment on exported function FileExists should be of the form "FileExists ..." (golint)
    • Line 55: warning: exported function GetLastPage should have comment or be unexported (golint)
    • Line 75: warning: exported type OSArchError should have comment or be unexported (golint)
    • Line 102: warning: exported function GetOSArch 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!