Preparing report...

Report for github.com/cloudtrust/common-healthcheck

A+    Excellent!    Found 17 issues across 18 files

Tweet

gofmt88%

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!


gocyclo100%

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.

No problems detected. Good job!


golint100%

Golint is a linter for Go source code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign11%

IneffAssign detects ineffectual assignments in Go code.

    • common-healthcheck/cockroach.go
    • Line 41: warning: Deactivated.String undefined (type Status has no field or method String) (ineffassign)
    • Line 74: warning: status.String undefined (type Status has no field or method String) (ineffassign)
    • Line 41: warning: Deactivated.String undefined (type Status has no field or method String) (ineffassign)
    • Line 74: warning: status.String undefined (type Status has no field or method String) (ineffassign)
    • common-healthcheck/influx.go
    • Line 41: warning: Deactivated.String undefined (type Status has no field or method String) (ineffassign)
    • Line 74: warning: status.String undefined (type Status has no field or method String) (ineffassign)
    • Line 41: warning: Deactivated.String undefined (type Status has no field or method String) (ineffassign)
    • Line 74: warning: status.String undefined (type Status has no field or method String) (ineffassign)
    • common-healthcheck/jaeger.go
    • Line 39: warning: Deactivated.String undefined (type Status has no field or method String) (ineffassign)
    • Line 79: warning: status.String undefined (type Status has no field or method String) (ineffassign)
    • Line 39: warning: Deactivated.String undefined (type Status has no field or method String) (ineffassign)
    • Line 79: warning: status.String undefined (type Status has no field or method String) (ineffassign)
    • common-healthcheck/cockroach_test.go
    • Line 13: warning: cannot find package "." in: (ineffassign)
    • Line 14: warning: cannot find package "." in: (ineffassign)
    • Line 15: warning: cannot find package "." in: (ineffassign)
    • Line 13: warning: could not import github.com/cloudtrust/common-healthcheck (invalid package name: "") (ineffassign)
    • Line 14: warning: could not import github.com/cloudtrust/common-healthcheck/mock (invalid package name: "") (ineffassign)
    • Line 15: warning: could not import github.com/golang/mock/gomock (invalid package name: "") (ineffassign)
    • Line 16: warning: could not import github.com/stretchr/testify/assert (invalid package name: "") (ineffassign)
    • Line 37: warning: undeclared name: NewCockroachModule (ineffassign)
    • Line 61: warning: undeclared name: NewCockroachModule (ineffassign)
    • Line 86: warning: undeclared name: NewCockroachModule (ineffassign)
    • Line 111: warning: undeclared name: NewCockroachModule (ineffassign)
    • Line 137: warning: undeclared name: NewCockroachModule (ineffassign)
    • Line 13: warning: "github.com/cloudtrust/common-healthcheck" imported but not used (ineffassign)
    • common-healthcheck/influx_test.go
    • Line 37: warning: undeclared name: NewInfluxModule (ineffassign)
    • Line 61: warning: undeclared name: NewInfluxModule (ineffassign)
    • Line 87: warning: undeclared name: NewInfluxModule (ineffassign)
    • Line 113: warning: undeclared name: NewInfluxModule (ineffassign)
    • Line 140: warning: undeclared name: NewInfluxModule (ineffassign)
    • Line 13: warning: "github.com/cloudtrust/common-healthcheck" imported but not used (ineffassign)
    • common-healthcheck/flaki.go
    • Line 41: warning: Deactivated.String undefined (type Status has no field or method String) (ineffassign)
    • Line 74: warning: status.String undefined (type Status has no field or method String) (ineffassign)
    • Line 41: warning: Deactivated.String undefined (type Status has no field or method String) (ineffassign)
    • Line 74: warning: status.String undefined (type Status has no field or method String) (ineffassign)
    • common-healthcheck/redis.go
    • Line 41: warning: Deactivated.String undefined (type Status has no field or method String) (ineffassign)
    • Line 74: warning: status.String undefined (type Status has no field or method String) (ineffassign)
    • Line 41: warning: Deactivated.String undefined (type Status has no field or method String) (ineffassign)
    • Line 74: warning: status.String undefined (type Status has no field or method String) (ineffassign)
    • common-healthcheck/sentry.go
    • Line 46: warning: Deactivated.String undefined (type Status has no field or method String) (ineffassign)
    • Line 80: warning: status.String undefined (type Status has no field or method String) (ineffassign)
    • Line 46: warning: Deactivated.String undefined (type Status has no field or method String) (ineffassign)
    • Line 80: warning: status.String undefined (type Status has no field or method String) (ineffassign)
    • common-healthcheck/flaki_test.go
    • Line 38: warning: undeclared name: NewFlakiModule (ineffassign)
    • Line 62: warning: undeclared name: NewFlakiModule (ineffassign)
    • Line 88: warning: undeclared name: NewFlakiModule (ineffassign)
    • Line 114: warning: undeclared name: NewFlakiModule (ineffassign)
    • Line 140: warning: undeclared name: NewFlakiModule (ineffassign)
    • Line 14: warning: "github.com/cloudtrust/common-healthcheck" imported but not used (ineffassign)
    • common-healthcheck/jaeger_test.go
    • Line 40: warning: undeclared name: NewJaegerModule (ineffassign)
    • Line 69: warning: undeclared name: NewJaegerModule (ineffassign)
    • Line 98: warning: undeclared name: NewJaegerModule (ineffassign)
    • Line 128: warning: undeclared name: NewJaegerModule (ineffassign)
    • Line 12: warning: "github.com/cloudtrust/common-healthcheck" imported but not used (ineffassign)
    • common-healthcheck/redis_test.go
    • Line 37: warning: undeclared name: NewRedisModule (ineffassign)
    • Line 61: warning: undeclared name: NewRedisModule (ineffassign)
    • Line 86: warning: undeclared name: NewRedisModule (ineffassign)
    • Line 111: warning: undeclared name: NewRedisModule (ineffassign)
    • Line 137: warning: undeclared name: NewRedisModule (ineffassign)
    • Line 13: warning: "github.com/cloudtrust/common-healthcheck" imported but not used (ineffassign)
    • common-healthcheck/logging.go
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: could not import github.com/go-kit/kit/log (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/go-kit/kit/log (invalid package name: "") (ineffassign)
    • common-healthcheck/sentry_test.go
    • Line 45: warning: undeclared name: NewSentryModule (ineffassign)
    • Line 76: warning: undeclared name: NewSentryModule (ineffassign)
    • Line 108: warning: undeclared name: NewSentryModule (ineffassign)
    • Line 140: warning: undeclared name: NewSentryModule (ineffassign)
    • Line 171: warning: undeclared name: NewSentryModule (ineffassign)
    • Line 15: warning: "github.com/cloudtrust/common-healthcheck" imported but not used (ineffassign)

misspell94%

Misspell Finds commonly misspelled English words