Preparing report...

Report for github.com/filipecosta90/redisai-go

A    Great!    Found 5 issues across 6 files

Tweet

gofmt83%

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!


gocyclo83%

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.


golint50%

Golint is a linter for Go source code.

    • redisai-go/redisai/client.go
    • Line 59: warning: exported method Client.ActiveConnNX should have comment or be unexported (golint)
    • Line 65: warning: exported method Client.Pipeline should have comment or be unexported (golint)
    • Line 71: warning: exported method Client.DisablePipeline should have comment or be unexported (golint)
    • Line 78: warning: exported method Client.Flush should have comment or be unexported (golint)
    • Line 94: warning: exported method Client.SendAndIncr should have comment or be unexported (golint)
    • Line 114: warning: exported method Client.TensorGet should have comment or be unexported (golint)
    • Line 147: warning: comment on exported method Client.TensorGetMeta should be of the form "TensorGetMeta ..." (golint)
    • Line 160: warning: comment on exported method Client.TensorGetBlob should be of the form "TensorGetBlob ..." (golint)
    • Line 173: warning: exported method Client.ModelGet should have comment or be unexported (golint)
    • Line 195: warning: exported method Client.ModelDel should have comment or be unexported (golint)
    • Line 206: warning: exported method Client.ScriptGet should have comment or be unexported (golint)
    • Line 227: warning: exported method Client.ScriptDel should have comment or be unexported (golint)
    • Line 238: warning: exported method Client.LoadBackend should have comment or be unexported (golint)
    • Line 238: warning: don't use underscores in Go names; method parameter backend_identifier should be backendIdentifier (golint)
    • Line 291: warning: don't use underscores in Go names; method parameter script_source should be scriptSource (golint)
    • redisai-go/redisai/common.go
    • Line 14: warning: don't use underscores in Go names; interface method parameter backend_identifier should be backendIdentifier (golint)
    • Line 73: warning: comment on exported const TensorContentTypeBlob should be of the form "TensorContentTypeBlob ..." (golint)
    • Line 76: warning: comment on exported const TensorContentTypeValues should be of the form "TensorContentTypeValues ..." (golint)
    • Line 79: warning: comment on exported const TensorContentTypeMeta should be of the form "TensorContentTypeMeta ..." (golint)
    • Line 83: warning: exported var ErrNil should have comment or be unexported (golint)
    • Line 85: warning: exported function TensorSetArgs should have comment or be unexported (golint)
    • Line 134: warning: exported function ModelRunArgs should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign50%

IneffAssign detects ineffectual assignments in Go code.

    • redisai-go/redisai/client.go
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: could not import github.com/gomodule/redigo/redis (invalid package name: "") (ineffassign)
    • Line 5: warning: could not import github.com/gomodule/redigo/redis (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!