Preparing report...

Report for kubedb.dev/operator

A    Great!    Found 9 issues across 11 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.


golint18%

Golint is a linter for Go source code.

    • /kubedb.dev/operator/pkg/cmds/server/options.go
    • Line 45: warning: exported type ExtraOptions should have comment or be unexported (golint)
    • Line 58: warning: exported function NewExtraOptions should have comment or be unexported (golint)
    • Line 72: warning: exported method ExtraOptions.AddGoFlags should have comment or be unexported (golint)
    • Line 84: warning: exported method ExtraOptions.AddFlags should have comment or be unexported (golint)
    • Line 90: warning: exported method ExtraOptions.ApplyTo should have comment or be unexported (golint)
    • /kubedb.dev/operator/pkg/server/server.go
    • Line 63: warning: exported var Scheme should have comment or be unexported (golint)
    • Line 85: warning: exported type KubeDBServerConfig should have comment or be unexported (golint)
    • Line 91: warning: exported type ExtraConfig should have comment or be unexported (golint)
    • Line 101: warning: exported method KubeDBServer.Run should have comment or be unexported (golint)
    • Line 112: warning: exported type CompletedConfig should have comment or be unexported (golint)
    • /kubedb.dev/operator/pkg/cmds/server/start.go
    • Line 37: warning: exported type KubeDBServerOptions should have comment or be unexported (golint)
    • Line 45: warning: exported function NewKubeDBServerOptions should have comment or be unexported (golint)
    • Line 62: warning: exported method KubeDBServerOptions.AddFlags should have comment or be unexported (golint)
    • Line 67: warning: exported method KubeDBServerOptions.Validate should have comment or be unexported (golint)
    • Line 71: warning: exported method KubeDBServerOptions.Complete should have comment or be unexported (golint)
    • Line 75: warning: exported method KubeDBServerOptions.Config should have comment or be unexported (golint)
    • Line 100: warning: exported method KubeDBServerOptions.Run should have comment or be unexported (golint)
    • /kubedb.dev/operator/pkg/controller/config.go
    • Line 56: warning: exported type OperatorConfig should have comment or be unexported (golint)
    • Line 71: warning: exported function NewOperatorConfig should have comment or be unexported (golint)
    • Line 77: warning: exported method OperatorConfig.New should have comment or be unexported (golint)
    • Line 122: warning: comment on exported method Controller.Init should be of the form "Init ..." (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!