Preparing report...

Report for github.com/CanopyTax/ckube

A+    Excellent!    Found 10 issues across 15 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!


golint33%

Golint is a linter for Go source code.

    • ckube/util/color.go
    • Line 11: warning: exported type ColorManager should have comment or be unexported (golint)
    • Line 16: warning: exported method ColorManager.GetColor should have comment or be unexported (golint)
    • Line 52: warning: exported method ColorManager.GetPrefix should have comment or be unexported (golint)
    • Line 59: warning: exported method ColorManager.Colorize should have comment or be unexported (golint)
    • ckube/util/output.go
    • Line 13: warning: exported type OutputManager should have comment or be unexported (golint)
    • Line 19: warning: exported method OutputManager.Append should have comment or be unexported (golint)
    • Line 26: warning: exported method OutputManager.GetOutput should have comment or be unexported (golint)
    • Line 30: warning: exported method OutputManager.HeaderLine should have comment or be unexported (golint)
    • Line 38: warning: exported method OutputManager.Print should have comment or be unexported (golint)
    • Line 47: warning: exported method OutputManager.FormattedStringSlice should have comment or be unexported (golint)
    • ckube/cmd/root.go
    • Line 18: warning: exported var RootCmd should have comment or be unexported (golint)
    • Line 24: warning: exported function Execute should have comment or be unexported (golint)
    • ckube/util/age.go
    • Line 8: warning: exported type Age should have comment or be unexported (golint)
    • Line 12: warning: exported method Age.Relative should have comment or be unexported (golint)
    • ckube/util/cmd.go
    • Line 11: warning: exported function RunCommand should have comment or be unexported (golint)
    • Line 24: warning: exported function InteractiveCommand should have comment or be unexported (golint)
    • Line 32: warning: exported function StreamCommand should have comment or be unexported (golint)
    • ckube/util/k8s.go
    • Line 11: warning: exported function GetPods should have comment or be unexported (golint)
    • Line 27: warning: exported function RawK8sOutput should have comment or be unexported (golint)
    • Line 33: warning: exported function FilterOutput should have comment or be unexported (golint)
    • Line 52: warning: exported function GetServicePods should have comment or be unexported (golint)
    • Line 66: warning: exported function GetMatchingPods should have comment or be unexported (golint)
    • Line 80: warning: exported function K8sCommandArgs should have comment or be unexported (golint)
    • Line 93: warning: exported function GetClientset should have comment or be unexported (golint)
    • Line 107: warning: exported function KeysString should have comment or be unexported (golint)
    • ckube/util/prompt.go
    • Line 10: warning: exported function CreatePodInfos should have comment or be unexported (golint)
    • Line 27: warning: exported type PodInfo should have comment or be unexported (golint)
    • Line 35: warning: exported method PodInfo.Print should have comment or be unexported (golint)
    • Line 39: warning: exported function GetPodPrompt should have comment or be unexported (golint)
    • ckube/cmd/deployment.go
    • Line 103: warning: exported type DeploymentInfo should have comment or be unexported (golint)
    • Line 112: warning: exported method DeploymentInfo.Print should have comment or be unexported (golint)
    • ckube/cmd/nodes.go
    • Line 14: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 64: warning: exported type PodStatus should have comment or be unexported (golint)
    • Line 70: warning: exported function NewPodStatus should have comment or be unexported (golint)
    • Line 116: warning: exported type NodePodInfo should have comment or be unexported (golint)
    • ckube/cmd/service.go
    • Line 11: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 83: warning: exported type PodDetails should have comment or be unexported (golint)
    • Line 92: warning: exported function NewPodDetails should have comment or be unexported (golint)
    • Line 106: warning: exported type ServiceInfo 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!