Preparing report...

Report for github.com/k3ai/k3ai

D    Needs lots of improvement    Found 21 issues across 21 files

Tweet

gofmt0%

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!


gocyclo76%

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.

    • k3ai/cmd/up.go
    • Line 25: warning: cyclomatic complexity 19 of function upCommand() is high (> 15) (gocyclo)

golint33%

Golint is a linter for Go source code.

    • k3ai/internal/variables.go
    • Line 10: warning: exported type Options should have comment or be unexported (golint)
    • Line 28: warning: exported type Env should have comment or be unexported (golint)
    • Line 33: warning: exported type K3aiPlugin should have comment or be unexported (golint)
    • Line 49: warning: exported type K3aiInternalPlugin should have comment or be unexported (golint)
    • Line 65: warning: exported type K3aiRootPlugin should have comment or be unexported (golint)
    • Line 81: warning: exported type AppPlugin should have comment or be unexported (golint)
    • Line 87: warning: exported type AppPluginResources should have comment or be unexported (golint)
    • k3ai/pkg/auth/gh.go
    • Line 10: warning: error should be the last type when returning multiple items (golint)
    • Line 10: warning: exported function GitHub should have comment or be unexported (golint)
    • k3ai/pkg/color/color.go
    • Line 7: warning: exported function Alert should have comment or be unexported (golint)
    • Line 11: warning: exported function Disable should have comment or be unexported (golint)
    • Line 15: warning: exported function Done should have comment or be unexported (golint)
    • Line 19: warning: exported function InProgress should have comment or be unexported (golint)
    • Line 23: warning: exported function White should have comment or be unexported (golint)
    • k3ai/pkg/io/execution/factory.go
    • Line 57: warning: exported function Deployment should have comment or be unexported (golint)
    • Line 85: warning: exported function Removal should have comment or be unexported (golint)
    • Line 417: warning: exported function WaitForDeployment should have comment or be unexported (golint)
    • Line 427: warning: exported function Client should have comment or be unexported (golint)
    • k3ai/pkg/tables/tables.go
    • Line 12: warning: exported function List should have comment or be unexported (golint)
    • Line 107: warning: exported function ListByName should have comment or be unexported (golint)
    • Line 128: warning: exported function ListClusters should have comment or be unexported (golint)
    • k3ai/pkg/db/db.go
    • Line 11: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 40: warning: exported function DbLogin should have comment or be unexported (golint)
    • Line 54: warning: exported function InitDB should have comment or be unexported (golint)
    • Line 72: warning: exported function Insert should have comment or be unexported (golint)
    • Line 89: warning: exported function List should have comment or be unexported (golint)
    • Line 101: warning: exported function UpdatePlugins should have comment or be unexported (golint)
    • Line 131: warning: exported function Delete should have comment or be unexported (golint)
    • Line 149: warning: exported function InsertPlugins should have comment or be unexported (golint)
    • Line 176: warning: exported function ListPlugins should have comment or be unexported (golint)
    • Line 211: warning: exported function ListPluginsByName should have comment or be unexported (golint)
    • Line 234: warning: exported function ListClustersByName should have comment or be unexported (golint)
    • Line 255: warning: exported function ListClusterByName should have comment or be unexported (golint)
    • Line 269: warning: exported function CheckClusterName should have comment or be unexported (golint)
    • Line 282: warning: exported function InsertCluster should have comment or be unexported (golint)
    • Line 296: warning: exported function DeleteCluster should have comment or be unexported (golint)
    • Line 309: warning: exported function KubeStr should have comment or be unexported (golint)
    • k3ai/pkg/loader/loader.go
    • Line 10: warning: exported function StandardLoader should have comment or be unexported (golint)
    • Line 25: warning: exported function SuperLoader should have comment or be unexported (golint)
    • Line 40: warning: exported function Working should have comment or be unexported (golint)
    • k3ai/pkg/env/config.go
    • Line 39: warning: comment on exported function InitConfig should be of the form "InitConfig ..." (golint)
    • Line 94: warning: exported function Config should have comment or be unexported (golint)
    • k3ai/pkg/http/http.go
    • Line 45: warning: exported function RetrievePlugins should have comment or be unexported (golint)
    • Line 108: warning: exported function GetIP should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign85%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!