Preparing report...

Report for github.com/shanbay/gobay

A+    Excellent!    Found 28 issues across 43 files

Tweet

gofmt95%

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!


gocyclo95%

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.


golint37%

Golint is a linter for Go source code.

    • gobay/extensions/asynctaskext/asynctaskext.go
    • Line 18: warning: exported type AsyncTaskExt should have comment or be unexported (golint)
    • Line 26: warning: exported method AsyncTaskExt.Object should have comment or be unexported (golint)
    • Line 30: warning: exported method AsyncTaskExt.Application should have comment or be unexported (golint)
    • Line 34: warning: exported method AsyncTaskExt.Init should have comment or be unexported (golint)
    • Line 57: warning: exported method AsyncTaskExt.Close should have comment or be unexported (golint)
    • Line 100: warning: comment on exported method AsyncTaskExt.SendTaskWithContext should be of the form "SendTaskWithContext ..." (golint)
    • gobay/extensions/cachext/ext.go
    • Line 19: warning: comment on exported type CacheExt should be of the form "CacheExt ..." (with optional leading article) (golint)
    • Line 35: warning: comment on exported type CacheBackend should be of the form "CacheBackend ..." (with optional leading article) (golint)
    • Line 116: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 121: warning: comment on exported method CacheExt.Close should be of the form "Close ..." (golint)
    • Line 126: warning: comment on exported method CacheExt.Object should be of the form "Object ..." (golint)
    • Line 131: warning: comment on exported method CacheExt.Application should be of the form "Application ..." (golint)
    • Line 140: warning: comment on exported method CacheExt.Get should be of the form "Get ..." (golint)
    • Line 150: warning: comment on exported method CacheExt.Set should be of the form "Set ..." (golint)
    • Line 160: warning: comment on exported method CacheExt.SetMany should be of the form "SetMany ..." (golint)
    • Line 166: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 195: warning: comment on exported method CacheExt.Delete should be of the form "Delete ..." (golint)
    • Line 200: warning: comment on exported method CacheExt.DeleteMany should be of the form "DeleteMany ..." (golint)
    • Line 209: warning: comment on exported method CacheExt.Expire should be of the form "Expire ..." (golint)
    • Line 214: warning: comment on exported method CacheExt.TTL should be of the form "TTL ..." (golint)
    • Line 219: warning: comment on exported method CacheExt.Exists should be of the form "Exists ..." (golint)
    • gobay/extensions/stubext/ext.go
    • Line 19: warning: exported type NewClientFunc should have comment or be unexported (golint)
    • Line 31: warning: exported type StubExt should have comment or be unexported (golint)
    • Line 54: warning: exported method StubExt.Application should have comment or be unexported (golint)
    • Line 56: warning: exported method StubExt.Object should have comment or be unexported (golint)
    • Line 58: warning: exported method StubExt.Close should have comment or be unexported (golint)
    • Line 65: warning: exported method StubExt.Init should have comment or be unexported (golint)
    • Line 98: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 125: warning: exported method StubExt.GetConn should have comment or be unexported (golint)
    • Line 162: warning: exported method StubExt.GetCtx should have comment or be unexported (golint)
    • gobay/app.go
    • Line 54: warning: exported method Application.Env should have comment or be unexported (golint)
    • Line 159: warning: exported function GetConfigByPrefix should have comment or be unexported (golint)
    • gobay/extensions/cachext/cached.go
    • Line 15: warning: exported const Nil should have comment or be unexported (golint)
    • Line 57: warning: comment on exported method CachedConfig.GetResult should be of the form "GetResult ..." (golint)
    • Line 98: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • gobay/extensions/entext/ext.go
    • Line 18: warning: exported type Client should have comment or be unexported (golint)
    • Line 22: warning: exported type EntExt should have comment or be unexported (golint)
    • Line 36: warning: exported method EntExt.Object should have comment or be unexported (golint)
    • Line 38: warning: exported method EntExt.Application should have comment or be unexported (golint)
    • Line 40: warning: exported method EntExt.Init should have comment or be unexported (golint)
    • Line 72: warning: exported method EntExt.Close should have comment or be unexported (golint)
    • gobay/extensions/esapmext/ext.go
    • Line 13: warning: exported type EsApmExt should have comment or be unexported (golint)
    • Line 18: warning: exported method EsApmExt.Object should have comment or be unexported (golint)
    • Line 22: warning: exported method EsApmExt.Application should have comment or be unexported (golint)
    • Line 26: warning: comment on exported method EsApmExt.Init should be of the form "Init ..." (golint)
    • Line 69: warning: exported method EsApmExt.Close should have comment or be unexported (golint)
    • gobay/extensions/busext/message.go
    • Line 10: warning: exported type Handler should have comment or be unexported (golint)
    • Line 16: warning: exported type Body should have comment or be unexported (golint)
    • Line 22: warning: exported type Embed should have comment or be unexported (golint)
    • Line 29: warning: exported function BuildMsg should have comment or be unexported (golint)
    • gobay/grpc/errors.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 9: warning: exported var NotFoundError should have comment or be unexported (golint)
    • gobay/extensions/seqgenext/ext.go
    • Line 41: warning: exported type SequenceGeneratorExt should have comment or be unexported (golint)
    • Line 79: warning: receiver name g should be consistent with previous receiver name d for SequenceGeneratorExt (golint)
    • Line 101: warning: exported method SequenceGeneratorExt.GetSequence should have comment or be unexported (golint)
    • Line 101: warning: receiver name g should be consistent with previous receiver name d for SequenceGeneratorExt (golint)
    • Line 105: warning: comment on exported method SequenceGeneratorExt.GetSequences should be of the form "GetSequences ..." (golint)
    • Line 110: warning: receiver name g should be consistent with previous receiver name d for SequenceGeneratorExt (golint)
    • Line 118: warning: exported type Sequences should have comment or be unexported (golint)
    • Line 131: warning: exported method Sequences.HasNext should have comment or be unexported (golint)
    • Line 137: warning: exported method Sequences.Next should have comment or be unexported (golint)
    • gobay/extensions/busext/amqp.go
    • Line 37: warning: exported type BusExt should have comment or be unexported (golint)
    • Line 60: warning: exported method BusExt.Object should have comment or be unexported (golint)
    • Line 64: warning: exported method BusExt.Application should have comment or be unexported (golint)
    • Line 68: warning: exported method BusExt.Init should have comment or be unexported (golint)
    • Line 104: warning: exported method BusExt.Close should have comment or be unexported (golint)
    • Line 127: warning: exported method BusExt.Push should have comment or be unexported (golint)
    • Line 175: warning: exported method BusExt.UnsafePush should have comment or be unexported (golint)
    • Line 188: warning: exported method BusExt.Register should have comment or be unexported (golint)
    • Line 192: warning: exported method BusExt.Consume should have comment or be unexported (golint)
    • gobay/utils/shorturl/shorturl.go
    • Line 14: warning: exported type UrlEncoder should have comment or be unexported (golint)
    • Line 18: warning: exported type Options should have comment or be unexported (golint)
    • Line 32: warning: exported function NewURLEncoder should have comment or be unexported (golint)
    • Line 88: warning: exported method UrlEncoder.EncodeURL should have comment or be unexported (golint)
    • Line 92: warning: exported method UrlEncoder.DecodeURL should have comment or be unexported (golint)
    • gobay/extensions/redisext/ext.go
    • Line 29: warning: comment on exported method RedisExt.Init should be of the form "Init ..." (golint)
    • Line 50: warning: exported method RedisExt.CheckHealth should have comment or be unexported (golint)
    • Line 94: warning: comment on exported method RedisExt.Application should be of the form "Application ..." (golint)
    • Line 99: warning: exported method RedisExt.Client should have comment or be unexported (golint)
    • gobay/extensions/entext/grpc/mw.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 10: warning: exported function GetEntUnaryMw should have comment or be unexported (golint)
    • Line 24: warning: exported function GetEntStreamMw should have comment or be unexported (golint)
    • gobay/echo/swagger/swagger.go
    • Line 14: warning: exported type Opts should have comment or be unexported (golint)
    • Line 16: warning: exported function SetSwaggerHost should have comment or be unexported (golint)
    • Line 22: warning: exported function SetSwaggerAuthorizer should have comment or be unexported (golint)
    • Line 28: warning: exported function SetSwaggerIsHTTPS should have comment or be unexported (golint)
    • Line 89: warning: if block ends with a return statement, so drop this else and outdent its block (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!