Preparing report...

Report for kubedb.dev/mysql

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


gocyclo78%

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.


golint47%

Golint is a linter for Go source code.

    • /kubedb.dev/mysql/pkg/controller/config.go
    • Line 43: warning: exported type OperatorConfig should have comment or be unexported (golint)
    • Line 57: warning: exported function NewOperatorConfig should have comment or be unexported (golint)
    • Line 63: warning: exported method OperatorConfig.New should have comment or be unexported (golint)
    • /kubedb.dev/mysql/pkg/controller/controller.go
    • Line 51: warning: exported type Controller should have comment or be unexported (golint)
    • Line 67: warning: exported function New should have comment or be unexported (golint)
    • Line 102: warning: comment on exported method Controller.EnsureCustomResourceDefinitions should be of the form "EnsureCustomResourceDefinitions ..." (golint)
    • Line 129: warning: comment on exported method Controller.Run should be of the form "Run ..." (golint)
    • /kubedb.dev/mysql/pkg/cmds/server/options.go
    • Line 44: warning: exported type ExtraOptions should have comment or be unexported (golint)
    • Line 57: warning: exported function NewExtraOptions should have comment or be unexported (golint)
    • Line 71: warning: exported method ExtraOptions.AddGoFlags should have comment or be unexported (golint)
    • Line 83: warning: exported method ExtraOptions.AddFlags should have comment or be unexported (golint)
    • Line 89: warning: exported method ExtraOptions.ApplyTo should have comment or be unexported (golint)
    • /kubedb.dev/mysql/pkg/admission/mutator.go
    • Line 38: warning: exported type MySQLMutator should have comment or be unexported (golint)
    • Line 49: warning: exported method MySQLMutator.Resource should have comment or be unexported (golint)
    • Line 58: warning: exported method MySQLMutator.Initialize should have comment or be unexported (golint)
    • Line 74: warning: exported method MySQLMutator.Admit should have comment or be unexported (golint)
    • /kubedb.dev/mysql/pkg/controller/health.go
    • Line 31: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 45: warning: exported const TLSValueCustom should have comment (or a comment on this block) or be unexported (golint)
    • Line 49: warning: exported method Controller.RunHealthChecker should have comment or be unexported (golint)
    • Line 55: warning: exported method Controller.CheckMySQLHealth should have comment or be unexported (golint)
    • Line 419: warning: exported function HostDNS should have comment or be unexported (golint)
    • /kubedb.dev/mysql/pkg/server/server.go
    • Line 54: warning: exported var Scheme should have comment or be unexported (golint)
    • Line 76: warning: exported type MySQLServerConfig should have comment or be unexported (golint)
    • Line 82: warning: exported type ExtraConfig should have comment or be unexported (golint)
    • Line 92: warning: exported method MySQLServer.Run should have comment or be unexported (golint)
    • Line 103: warning: exported type CompletedConfig should have comment or be unexported (golint)
    • /kubedb.dev/mysql/pkg/cmds/server/start.go
    • Line 37: warning: exported type MySQLServerOptions should have comment or be unexported (golint)
    • Line 45: warning: exported function NewMySQLServerOptions should have comment or be unexported (golint)
    • Line 62: warning: exported method MySQLServerOptions.AddFlags should have comment or be unexported (golint)
    • Line 67: warning: exported method MySQLServerOptions.Validate should have comment or be unexported (golint)
    • Line 71: warning: exported method MySQLServerOptions.Complete should have comment or be unexported (golint)
    • Line 75: warning: exported method MySQLServerOptions.Config should have comment or be unexported (golint)
    • Line 100: warning: exported method MySQLServerOptions.Run should have comment or be unexported (golint)
    • /kubedb.dev/mysql/pkg/admission/validator.go
    • Line 45: warning: exported type MySQLValidator should have comment or be unexported (golint)
    • Line 63: warning: exported method MySQLValidator.Resource should have comment or be unexported (golint)
    • Line 72: warning: exported method MySQLValidator.Initialize should have comment or be unexported (golint)
    • Line 88: warning: exported method MySQLValidator.Admit 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!