Preparing report...

Report for github.com/golib2020/frame

A    Great!    Found 23 issues across 37 files

Tweet

gofmt89%

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!


golint40%

Golint is a linter for Go source code.

    • frame/f/xorm.go
    • Line 7: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 12: warning: exported const XormInstancePrefix should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: exported function Xorm should have comment or be unexported (golint)
    • frame/queue/lua_script.go
    • Line 3: warning: exported const LuaScriptPop should have comment or be unexported (golint)
    • Line 13: warning: exported const LuaScriptDelete should have comment or be unexported (golint)
    • Line 20: warning: exported const LuaScriptRelease should have comment or be unexported (golint)
    • Line 28: warning: exported const LuaScriptMigrateExpiredJobs should have comment or be unexported (golint)
    • Line 39: warning: exported const LuaScriptSize should have comment or be unexported (golint)
    • frame/queue/queue.go
    • Line 8: warning: exported type Queue should have comment or be unexported (golint)
    • Line 17: warning: exported type Job should have comment or be unexported (golint)
    • Line 29: warning: exported function NewJob should have comment or be unexported (golint)
    • frame/f/cron.go
    • Line 11: warning: comment on exported function Cron should be of the form "Cron ..." (golint)
    • frame/f/instance.go
    • Line 8: warning: exported type Store should have comment or be unexported (golint)
    • Line 17: warning: exported function NewStore should have comment or be unexported (golint)
    • Line 46: warning: exported function Instance should have comment or be unexported (golint)
    • frame/storage/local.go
    • Line 18: warning: exported function NewLocal should have comment or be unexported (golint)
    • Line 42: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • frame/storage/option.go
    • Line 11: warning: exported type Option should have comment or be unexported (golint)
    • Line 13: warning: exported function WithSecretIdKey should have comment or be unexported (golint)
    • Line 20: warning: exported function WithBucketName should have comment or be unexported (golint)
    • Line 26: warning: exported function WithEndpoint should have comment or be unexported (golint)
    • Line 32: warning: exported function WithRegion should have comment or be unexported (golint)
    • frame/f/mysql.go
    • Line 8: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • frame/email/email.go
    • Line 14: warning: exported type Email should have comment or be unexported (golint)
    • Line 27: warning: exported function NewMail should have comment or be unexported (golint)
    • frame/cron/corn.go
    • Line 3: warning: exported type Job should have comment or be unexported (golint)
    • Line 7: warning: exported type Cron should have comment or be unexported (golint)
    • frame/f/db.go
    • Line 7: warning: exported function DB should have comment or be unexported (golint)
    • frame/email/message.go
    • Line 15: warning: exported type Message should have comment or be unexported (golint)
    • Line 44: warning: exported function NewMessage should have comment or be unexported (golint)
    • Line 48: warning: exported function NewHTMLMessage 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!