Preparing report...

Report for github.com/small-ek/ginp

A+    Excellent!    Found 19 issues across 79 files

Tweet

gofmt98%

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!


gocyclo92%

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.

    • ginp/conv/conv_slice.go
    • Line 9: warning: cyclomatic complexity 36 of function Ints() is high (> 15) (gocyclo)
    • Line 106: warning: cyclomatic complexity 36 of function Int32s() is high (> 15) (gocyclo)
    • Line 203: warning: cyclomatic complexity 36 of function Int64s() is high (> 15) (gocyclo)
    • Line 671: warning: cyclomatic complexity 35 of function Interfaces() is high (> 15) (gocyclo)
    • Line 301: warning: cyclomatic complexity 35 of function Strings() is high (> 15) (gocyclo)
    • Line 394: warning: cyclomatic complexity 34 of function Uints() is high (> 15) (gocyclo)
    • Line 487: warning: cyclomatic complexity 34 of function Uint32s() is high (> 15) (gocyclo)
    • Line 579: warning: cyclomatic complexity 34 of function Uint64s() is high (> 15) (gocyclo)

golint81%

Golint is a linter for Go source code.

    • ginp/mgo/mgo.go
    • Line 15: warning: comment on exported type Mgo should be of the form "Mgo ..." (with optional leading article) (golint)
    • ginp/os/config/config.go
    • Line 22: warning: comment on exported type Config should be of the form "Config ..." (with optional leading article) (golint)
    • Line 161: warning: comment on exported method Config.Uint8 should be of the form "Uint8 ..." (golint)
    • Line 166: warning: comment on exported method Config.Uint16 should be of the form "Uint16 ..." (golint)
    • Line 171: warning: comment on exported method Config.Uint32 should be of the form "Uint32 ..." (golint)
    • Line 176: warning: comment on exported method Config.Uint64 should be of the form "Uint64 ..." (golint)
    • ginp/aredis/aredis.go
    • Line 10: warning: comment on exported type Client should be of the form "Client ..." (with optional leading article) (golint)
    • Line 118: warning: comment on exported method Client.TTL should be of the form "TTL ..." (golint)
    • ginp/orm/orm.go
    • Line 110: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • ginp/net/ahttp/http.go
    • Line 127: warning: comment on exported method HttpSend.SetContentType should be of the form "SetContentType ..." (golint)
    • Line 503: warning: comment on exported method HttpSend.Debug should be of the form "Debug ..." (golint)
    • ginp/aredis/set.go
    • Line 53: warning: comment on exported method Client.RemoveSet should be of the form "RemoveSet ..." (golint)
    • ginp/i18n/i18n.go
    • Line 65: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • ginp/os/atime/atime.go
    • Line 34: warning: comment on exported method Times.Add should be of the form "Add ..." (golint)
    • Line 40: warning: comment on exported method Times.Month should be of the form "Month ..." (golint)
    • Line 45: warning: comment on exported method Times.Second should be of the form "Second ..." (golint)
    • Line 51: warning: comment on exported method Times.IsZero should be of the form "IsZero ..." (golint)
    • Line 71: warning: comment on exported method Times.AddDate should be of the form "AddDate ..." (golint)
    • Line 92: warning: comment on exported method Times.Truncate should be of the form "Truncate ..." (golint)
    • Line 103: warning: comment on exported method Times.Equal should be of the form "Equal ..." (golint)
    • Line 112: warning: comment on exported method Times.Before should be of the form "Before ..." (golint)
    • Line 117: warning: comment on exported method Times.After should be of the form "After ..." (golint)
    • Line 122: warning: comment on exported method Times.Sub should be of the form "Sub ..." (golint)
    • ginp/os/atime/format.go
    • Line 14: warning: exported var ErrLayout should have comment or be unexported (golint)
    • Line 50: warning: exported type Times should have comment or be unexported (golint)
    • Line 106: warning: comment on exported function Now should be of the form "Now ..." (golint)
    • Line 112: warning: comment on exported function WithTime should be of the form "WithTime ..." (golint)
    • ginp/aredis/list.go
    • Line 7: warning: comment on exported method Client.GetListLength should be of the form "GetListLength ..." (golint)
    • Line 60: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 75: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 84: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 93: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 102: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • ginp/aredis/zset.go
    • Line 8: warning: comment on exported method Client.AddZset should be of the form "AddZset ..." (golint)
    • Line 24: warning: comment on exported method Client.GetZsetLength should be of the form "GetZsetLength ..." (golint)
    • Line 41: warning: comment on exported method Client.GetZsetMember should be of the form "GetZsetMember ..." (golint)
    • Line 88: warning: comment on exported method Client.GetZsetRevRange should be of the form "GetZsetRevRange ..." (golint)
    • Line 104: warning: comment on exported method Client.GetZsetRangeByScore should be of the form "GetZsetRangeByScore ..." (golint)
    • ginp/validator/validator.go
    • Line 21: warning: comment on exported function Default should be of the form "Default ..." (golint)
    • Line 29: warning: comment on exported method New.SetRule should be of the form "SetRule ..." (golint)
    • Line 35: warning: comment on exported method New.SetScene should be of the form "SetScene ..." (golint)
    • Line 41: warning: comment on exported method New.Check should be of the form "Check ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!