Preparing report...

Report for github.com/goapt/redis

A+    Excellent!    Found 4 issues across 6 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!


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!


golint33%

Golint is a linter for Go source code.

    • redis/scan.go
    • Line 12: warning: exported var ScanTagName should have comment or be unexported (golint)
    • Line 16: warning: exported var DecodeHook should have comment or be unexported (golint)
    • redis/scan_test.go
    • Line 13: warning: don't use underscores in Go names; type t_users should be tUsers (golint)
    • Line 23: warning: don't use underscores in Go names; type t_orders should be tOrders (golint)
    • redis/client.go
    • Line 13: warning: exported const CACHE_WEEK_TTL should have comment (or a comment on this block) or be unexported (golint)
    • Line 19: warning: exported var ErrNoData should have comment or be unexported (golint)
    • Line 20: warning: exported var ErrClosed should have comment or be unexported (golint)
    • Line 22: warning: exported type Redis should have comment or be unexported (golint)
    • Line 26: warning: exported function NewRedis should have comment or be unexported (golint)
    • Line 32: warning: exported function NewRedisWithName should have comment or be unexported (golint)
    • Line 38: warning: exported function IsNil should have comment or be unexported (golint)
    • Line 42: warning: exported method Redis.Client should have comment or be unexported (golint)
    • Line 46: warning: exported method Redis.HGetAll should have comment or be unexported (golint)
    • Line 54: warning: exported method Redis.HGetAllMap should have comment or be unexported (golint)
    • Line 86: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 100: warning: exported method Redis.HGet should have comment or be unexported (golint)
    • Line 104: warning: exported method Redis.HSet should have comment or be unexported (golint)
    • Line 108: warning: exported method Redis.HDel should have comment or be unexported (golint)
    • Line 112: warning: exported method Redis.HExists should have comment or be unexported (golint)
    • Line 116: warning: exported method Redis.HIncrBy should have comment or be unexported (golint)
    • Line 120: warning: exported method Redis.Exists should have comment or be unexported (golint)
    • Line 130: warning: exported method Redis.LPop should have comment or be unexported (golint)
    • Line 134: warning: exported method Redis.RPop should have comment or be unexported (golint)
    • Line 138: warning: exported method Redis.LPush should have comment or be unexported (golint)
    • Line 142: warning: exported method Redis.RPush should have comment or be unexported (golint)
    • Line 146: warning: exported method Redis.Del should have comment or be unexported (golint)
    • Line 155: warning: exported method Redis.SetEX should have comment or be unexported (golint)
    • Line 159: warning: exported method Redis.SetNX should have comment or be unexported (golint)
    • Line 163: warning: exported method Redis.Get should have comment or be unexported (golint)
    • Line 167: warning: exported method Redis.Incr should have comment or be unexported (golint)
    • Line 171: warning: exported method Redis.Decr should have comment or be unexported (golint)
    • Line 175: warning: exported method Redis.IncrBy should have comment or be unexported (golint)
    • Line 179: warning: exported method Redis.DecrBy should have comment or be unexported (golint)
    • Line 183: warning: exported method Redis.Expire should have comment or be unexported (golint)
    • Line 187: warning: exported method Redis.SAdd should have comment or be unexported (golint)
    • Line 191: warning: exported method Redis.TTL should have comment or be unexported (golint)
    • redis/redis.go
    • Line 19: warning: exported type Config should have comment or be unexported (golint)
    • Line 38: warning: exported function Client should have comment or be unexported (golint)
    • Line 66: warning: comment on exported function OpenSentinel should be of the form "OpenSentinel ..." (golint)
    • Line 73: warning: exported function Connect 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!