Preparing report...

Report for github.com/xenking/redis

A    Great!    Found 4 issues across 11 files

Tweet

gofmt72%

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!


gocyclo81%

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.

    • redis/pubsub.go
    • Line 227: warning: cyclomatic complexity 31 of function (*Listener).readLoop() is high (> 15) (gocyclo)
    • redis/command_test.go
    • Line 360: warning: cyclomatic complexity 18 of function TestListRight() is high (> 15) (gocyclo)
    • Line 315: warning: cyclomatic complexity 18 of function TestListLeft() is high (> 15) (gocyclo)
    • Line 443: warning: cyclomatic complexity 17 of function TestListIndex() is high (> 15) (gocyclo)
    • Line 522: warning: cyclomatic complexity 16 of function TestHashCRUD() is high (> 15) (gocyclo)

golint90%

Golint is a linter for Go source code.

    • redis/command.go
    • Line 808: warning: comment on exported method Client.ZADDArgs should be of the form "ZADDArgs ..." (golint)
    • Line 818: warning: comment on exported method Client.BytesZADDArgs should be of the form "BytesZADDArgs ..." (golint)
    • Line 828: warning: comment on exported method Client.ZADDStringArgs should be of the form "ZADDStringArgs ..." (golint)
    • Line 883: warning: comment on exported method Client.ZREMArgs should be of the form "ZREMArgs ..." (golint)
    • Line 890: warning: comment on exported method Client.ZREMStringArgs should be of the form "ZREMStringArgs ..." (golint)
    • Line 897: warning: comment on exported method Client.BytesZREMArgs should be of the form "BytesZREMArgs ..." (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!


misspell90%

Misspell Finds commonly misspelled English words