Preparing report...

Report for github.com/kubernetes-misc/kemt

A    Great!    Found 8 issues across 10 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!


gocyclo90%

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.


golint20%

Golint is a linter for Go source code.

    • kemt/model/rotary.go
    • Line 8: warning: exported function NewRotary should have comment or be unexported (golint)
    • Line 16: warning: exported type Rotary should have comment or be unexported (golint)
    • Line 25: warning: exported method Rotary.Add should have comment or be unexported (golint)
    • Line 58: warning: exported method Rotary.ForEach should have comment or be unexported (golint)
    • Line 69: warning: exported method Rotary.Subscribe should have comment or be unexported (golint)
    • kemt/model/subscription.go
    • Line 3: warning: exported type Subscription should have comment or be unexported (golint)
    • Line 8: warning: exported method Subscription.Close should have comment or be unexported (golint)
    • kemt/bin/app.go
    • Line 12: warning: exported const DefaultCronSpec should have comment or be unexported (golint)
    • kemt/web/http.go
    • Line 16: warning: exported function StartServer should have comment or be unexported (golint)
    • Line 160: warning: exported type Hub should have comment or be unexported (golint)
    • kemt/client/k8s.go
    • Line 27: warning: exported function BuildClient should have comment or be unexported (golint)
    • Line 65: warning: exported function GetPods should have comment or be unexported (golint)
    • Line 78: warning: exported function GetDeploymentsDetail should have comment or be unexported (golint)
    • Line 95: warning: exported function GetDeployments should have comment or be unexported (golint)
    • Line 108: warning: exported function GetNS should have comment or be unexported (golint)
    • Line 123: warning: exported type Event should have comment or be unexported (golint)
    • Line 128: warning: exported method Event.ToString should have comment or be unexported (golint)
    • Line 143: warning: exported type Metadata should have comment or be unexported (golint)
    • Line 147: warning: exported type Object should have comment or be unexported (golint)
    • Line 157: warning: exported type InvolvedObject should have comment or be unexported (golint)
    • Line 163: warning: error should be the last type when returning multiple items (golint)
    • Line 163: warning: exported function GetLogs should have comment or be unexported (golint)
    • Line 189: warning: exported function GetEvents should have comment or be unexported (golint)
    • kemt/client/teams.go
    • Line 13: warning: exported function NewTeamsClient should have comment or be unexported (golint)
    • Line 22: warning: exported type TeamsClient should have comment or be unexported (golint)
    • Line 30: warning: exported method TeamsClient.UpdateEndpoint should have comment or be unexported (golint)
    • Line 42: warning: exported method TeamsClient.Start should have comment or be unexported (golint)
    • Line 72: warning: exported method TeamsClient.EnqueueMsg should have comment or be unexported (golint)
    • Line 76: warning: exported type Webhook should have comment or be unexported (golint)
    • kemt/model/job.go
    • Line 3: warning: exported type Job should have comment or be unexported (golint)
    • Line 7: warning: exported method Job.Run 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!