Preparing report...

Report for github.com/wzshiming/ssdb

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


gocyclo94%

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.

    • ssdb/value.go
    • Line 99: warning: cyclomatic complexity 22 of function NewValue() is high (> 15) (gocyclo)

golint58%

Golint is a linter for Go source code.

    • ssdb/result.go
    • Line 8: warning: exported var ErrIsEmpty should have comment or be unexported (golint)
    • Line 12: warning: exported function ResultProcessing should have comment or be unexported (golint)
    • ssdb/value.go
    • Line 14: warning: exported function NewValues should have comment or be unexported (golint)
    • Line 26: warning: comment on exported method Values.First should be of the form "First ..." (golint)
    • Line 99: warning: exported function NewValue should have comment or be unexported (golint)
    • Line 138: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • ssdb/term/conn.go
    • Line 11: warning: exported function Run should have comment or be unexported (golint)
    • Line 33: warning: exported function Conn should have comment or be unexported (golint)
    • ssdb/term/extra.go
    • Line 8: warning: exported type Extra should have comment or be unexported (golint)
    • Line 13: warning: exported method Extra.Cmd should have comment or be unexported (golint)
    • Line 24: warning: exported method Extra.AddCmd should have comment or be unexported (golint)
    • Line 28: warning: exported function NewExtra should have comment or be unexported (golint)
    • ssdb/cmd_kv.go
    • Line 136: warning: comment on exported method Client.RScanPairs should be of the form "RScanPairs ..." (golint)
    • ssdb/option.go
    • Line 42: warning: exported function DialTimeoutOption should have comment or be unexported (golint)
    • Line 50: warning: exported function ReadWriteTimeoutOption should have comment or be unexported (golint)
    • Line 56: warning: exported function IgnoreNotFoundError 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!


misspell94%

Misspell Finds commonly misspelled English words