Preparing report...

Report for github.com/tkeel-io/cli

A    Great!    Found 17 issues across 24 files

Tweet

gofmt95%

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!


golint29%

Golint is a linter for Go source code.

    • cli/pkg/kubernetes/kubernetes.go
    • Line 44: warning: error var DaprNotInstall should have name of the form ErrFoo (golint)
    • Line 44: warning: exported var DaprNotInstall should have comment or be unexported (golint)
    • Line 47: warning: exported type InitConfiguration should have comment or be unexported (golint)
    • Line 281: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • cli/pkg/kubernetes/pods.go
    • Line 13: warning: exported function ListPodsInterface should have comment or be unexported (golint)
    • Line 21: warning: exported function ListPods should have comment or be unexported (golint)
    • cli/pkg/kubernetes/tenant.go
    • Line 12: warning: exported function TenantCreate should have comment or be unexported (golint)
    • Line 25: warning: exported function CreateTenant should have comment or be unexported (golint)
    • Line 40: warning: exported function TenantList should have comment or be unexported (golint)
    • Line 53: warning: exported function ListTenant should have comment or be unexported (golint)
    • Line 68: warning: exported type TenantCreateResponse should have comment or be unexported (golint)
    • Line 73: warning: exported type TenantListResponse should have comment or be unexported (golint)
    • Line 79: warning: exported type TenantListData should have comment or be unexported (golint)
    • Line 82: warning: exported type TenantCreateResp should have comment or be unexported (golint)
    • Line 89: warning: exported type User should have comment or be unexported (golint)
    • cli/pkg/print/print.go
    • Line 19: warning: exported type Result should have comment or be unexported (golint)
    • Line 22: warning: exported const Success should have comment (or a comment on this block) or be unexported (golint)
    • Line 27: warning: exported var Yellow should have comment or be unexported (golint)
    • Line 38: warning: exported function EnableJSONFormat should have comment or be unexported (golint)
    • Line 97: warning: exported function Spinner should have comment or be unexported (golint)
    • cli/pkg/kubernetes/status.go
    • Line 17: warning: exported type StatusClient should have comment or be unexported (golint)
    • Line 34: warning: comment on exported function NewStatusClient should be of the form "NewStatusClient ..." (golint)
    • Line 45: warning: comment on exported method StatusClient.Status should be of the form "Status ..." (golint)
    • cli/pkg/kubernetes/client.go
    • Line 20: warning: exported var Client should have comment or be unexported (golint)
    • Line 22: warning: exported function ListPlugins should have comment or be unexported (golint)
    • Line 38: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 44: warning: exported function RegisterPlugins should have comment or be unexported (golint)
    • Line 56: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 78: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 83: warning: exported function DeletePlugins should have comment or be unexported (golint)
    • Line 100: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 105: warning: exported function GetTKeelNameSpace should have comment or be unexported (golint)
    • Line 116: warning: exported function GetPodsInterface should have comment or be unexported (golint)
    • cli/pkg/kubernetes/plugin.go
    • Line 17: warning: exported type Plugin should have comment or be unexported (golint)
    • Line 25: warning: exported type PluginResponse should have comment or be unexported (golint)
    • Line 31: warning: exported function List should have comment or be unexported (golint)
    • Line 45: warning: exported function Register should have comment or be unexported (golint)
    • Line 59: warning: exported function Delete should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign95%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!