Preparing report...

Report for github.com/taomin597715379/redisvo

A    Great!    Found 5 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!


gocyclo57%

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.

    • redisvo/util.go
    • Line 266: warning: cyclomatic complexity 20 of function getKeysByTypeName() is high (> 15) (gocyclo)

golint28%

Golint is a linter for Go source code.

    • redisvo/struct.go
    • Line 161: warning: exported type StringSlice should have comment or be unexported (golint)
    • Line 163: warning: exported type TypeNames should have comment or be unexported (golint)
    • Line 165: warning: exported type KeyNameSlice should have comment or be unexported (golint)
    • redisvo/util.go
    • Line 378: warning: don't use underscores in Go names; var now_version should be nowVersion (golint)
    • Line 378: warning: don't use underscores in Go names; var update_verison should be updateVerison (golint)
    • redisvo/splitecommand/splitecommand.go
    • Line 8: warning: exported function AnalyzeCommand should have comment or be unexported (golint)
    • Line 54: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 68: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 101: warning: exported function Isspace should have comment or be unexported (golint)
    • redisvo/logo.go
    • Line 3: warning: comment on exported var LOGO should be of the form "LOGO ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign85%

IneffAssign detects ineffectual assignments in Go code.


misspell85%

Misspell Finds commonly misspelled English words

    • redisvo/util.go
    • Line 378: warning: "verison" is a misspelling of "version" (misspell)
    • Line 381: warning: "verison" is a misspelling of "version" (misspell)