Preparing report...

Report for github.com/sillyhatxu/redis-client

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


golint42%

Golint is a linter for Go source code.

    • redis-client/goredis.go
    • Line 9: warning: exported type Client should have comment or be unexported (golint)
    • Line 16: warning: exported function NewRedisClient should have comment or be unexported (golint)
    • Line 37: warning: exported method Client.GetClient should have comment or be unexported (golint)
    • Line 57: warning: exported method Client.Get should have comment or be unexported (golint)
    • Line 72: warning: exported method Client.Set should have comment or be unexported (golint)
    • Line 84: warning: exported method Client.SetByExpiration should have comment or be unexported (golint)
    • Line 96: warning: exported method Client.Exists should have comment or be unexported (golint)
    • Line 105: warning: exported method Client.Expire should have comment or be unexported (golint)
    • Line 117: warning: exported method Client.Incr should have comment or be unexported (golint)
    • Line 126: warning: exported method Client.IncrByExpiration should have comment or be unexported (golint)
    • redis-client/redisid/generator.go
    • Line 10: warning: exported type LifeCycleType should have comment or be unexported (golint)
    • Line 13: warning: exported const Second should have comment (or a comment on this block) or be unexported (golint)
    • Line 32: warning: exported type GeneratorClient should have comment or be unexported (golint)
    • Line 39: warning: exported function NewGeneratorClient should have comment or be unexported (golint)
    • Line 79: warning: exported method GeneratorClient.GeneratorId should have comment or be unexported (golint)
    • Line 83: warning: exported method GeneratorClient.GeneratorGroupId should have comment or be unexported (golint)
    • Line 109: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • redis-client/redisid/options.go
    • Line 3: warning: exported type Config should have comment or be unexported (golint)
    • Line 10: warning: exported type Option should have comment or be unexported (golint)
    • Line 12: warning: exported function Prefix should have comment or be unexported (golint)
    • Line 18: warning: exported function GroupLength should have comment or be unexported (golint)
    • Line 24: warning: exported function SequenceFormat should have comment or be unexported (golint)
    • Line 30: warning: exported function LifeCycle should have comment or be unexported (golint)
    • redis-client/redisid/utils.go
    • Line 8: warning: exported const BaseString should have comment or be unexported (golint)
    • Line 9: warning: exported const BaseStringLength should have comment or be unexported (golint)
    • Line 11: warning: exported function Int2String 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!