Preparing report...

Report for github.com/yongman/tidis

(v1.1.0)

A    Great!    Found 15 issues across 31 files

Tweet

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!


gofmt61%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


gocyclo80%

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.

    • server/client.go
    • Line 232: warning: cyclomatic complexity 27 of function (*Client).handleRequest() is high (> 15) (gocyclo)
    • tidis/t_zset.go
    • Line 376: warning: cyclomatic complexity 26 of function (*Tidis).Zrangebyscore() is high (> 15) (gocyclo)
    • Line 295: warning: cyclomatic complexity 20 of function (*Tidis).Zrange() is high (> 15) (gocyclo)
    • Line 499: warning: cyclomatic complexity 20 of function (*Tidis).Zrangebylex() is high (> 15) (gocyclo)
    • Line 1054: warning: cyclomatic complexity 17 of function (*Tidis).ZincrbyWithTxn() is high (> 15) (gocyclo)
    • Line 688: warning: cyclomatic complexity 17 of function (*Tidis).ZremrangebylexWithTxn() is high (> 15) (gocyclo)
    • tidis/t_set.go
    • Line 617: warning: cyclomatic complexity 24 of function (*Tidis).SopsStoreWithTxn() is high (> 15) (gocyclo)
    • tidis/t_list.go
    • Line 401: warning: cyclomatic complexity 22 of function (*Tidis).LtrimWithTxn() is high (> 15) (gocyclo)
    • Line 221: warning: cyclomatic complexity 21 of function (*Tidis).Lrange() is high (> 15) (gocyclo)
    • store/tikv/tikv.go
    • Line 286: warning: cyclomatic complexity 17 of function (*Tikv).getRangeKeysWithFrontier() is high (> 15) (gocyclo)
    • Line 548: warning: cyclomatic complexity 17 of function (*Tikv).getKeysUtilObj() is high (> 15) (gocyclo)
    • tidis/t_hash.go
    • Line 262: warning: cyclomatic complexity 16 of function (*Tidis).HdelWithTxn() is high (> 15) (gocyclo)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!