Preparing report...

Report for github.com/cloud104/kube-db

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


gocyclo94%

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.


golint52%

Golint is a linter for Go source code.

    • kube-db/pkg/actuators/rds/actions.go
    • Line 11: warning: context.Context should be the first parameter of a function (golint)
    • Line 11: warning: exported method Actuator.Reconcile should have comment or be unexported (golint)
    • Line 95: warning: context.Context should be the first parameter of a function (golint)
    • Line 95: warning: exported method Actuator.Delete should have comment or be unexported (golint)
    • kube-db/pkg/actuators/rds/types.go
    • Line 16: warning: exported type Actuator should have comment or be unexported (golint)
    • Line 24: warning: exported type Kube should have comment or be unexported (golint)
    • Line 28: warning: exported type Params should have comment or be unexported (golint)
    • kube-db/api/v1/rds_types.go
    • Line 80: warning: exported method Rds.Is should have comment or be unexported (golint)
    • Line 84: warning: exported function NewStatus should have comment or be unexported (golint)
    • kube-db/controllers/rds_controller.go
    • Line 39: warning: comment on exported method RdsReconciler.Reconcile should be of the form "Reconcile ..." (golint)
    • Line 143: warning: context.Context should be the first parameter of a function (golint)
    • Line 153: warning: exported method RdsReconciler.SetupWithManager should have comment or be unexported (golint)
    • kube-db/pkg/actuators/rds/kube.go
    • Line 24: warning: comment on exported method Kube.ReconcileService should be of the form "ReconcileService ..." (golint)
    • Line 44: warning: comment on exported method Kube.HasService should be of the form "HasService ..." (golint)
    • Line 50: warning: exported method Kube.DeleteService should have comment or be unexported (golint)
    • Line 64: warning: exported method Kube.GetSecret should have comment or be unexported (golint)
    • kube-db/pkg/actuators/rds/client/client.go
    • Line 101: warning: comment on exported method AWS.GetEndpoint should be of the form "GetEndpoint ..." (golint)
    • Line 127: warning: comment on exported method AWS.GetStatus should be of the form "GetStatus ..." (golint)
    • Line 144: warning: exported method AWS.PendingReboot should have comment or be unexported (golint)
    • Line 185: warning: comment on exported method AWS.RebootDatabase should be of the form "RebootDatabase ..." (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign94%

IneffAssign detects ineffectual assignments in Go code.


misspell84%

Misspell Finds commonly misspelled English words