Preparing report...

Report for github.com/dtapps/go-redis

A    Great!    Found 11 issues across 11 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!


gocyclo100%

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.

No problems detected. Good job!


golint9%

Golint is a linter for Go source code.

    • go-redis/OperationAttr.go
    • Line 6: warning: exported const AttrExpr should have comment (or a comment on this block) or be unexported (golint)
    • Line 9: warning: exported type OperationAttr should have comment or be unexported (golint)
    • Line 14: warning: exported type OperationAttrs should have comment or be unexported (golint)
    • Line 16: warning: exported method OperationAttrs.Find should have comment or be unexported (golint)
    • go-redis/SimpleCache.go
    • Line 5: warning: exported type DBGttFunc should have comment or be unexported (golint)
    • Line 7: warning: exported type SimpleCache should have comment or be unexported (golint)
    • Line 13: warning: exported function NewSimpleCache should have comment or be unexported (golint)
    • go-redis/StringOperation.go
    • Line 8: warning: exported type StringOperation should have comment or be unexported (golint)
    • Line 12: warning: exported function NewStringOperation should have comment or be unexported (golint)
    • go-redis/StringResult.go
    • Line 3: warning: exported type StringResult should have comment or be unexported (golint)
    • Line 8: warning: exported function NewStringResult should have comment or be unexported (golint)
    • Line 28: warning: exported method StringResult.UnwrapOrElse should have comment or be unexported (golint)
    • go-redis/Iterator.go
    • Line 3: warning: exported type Iterator should have comment or be unexported (golint)
    • Line 8: warning: exported function NewIterator should have comment or be unexported (golint)
    • Line 11: warning: exported method Iterator.HasNext should have comment or be unexported (golint)
    • Line 18: warning: exported method Iterator.Next should have comment or be unexported (golint)
    • go-redis/SliceResult.go
    • Line 3: warning: exported type SliceResult should have comment or be unexported (golint)
    • Line 8: warning: exported function NewSliceResult should have comment or be unexported (golint)
    • Line 28: warning: exported method SliceResult.Iter should have comment or be unexported (golint)
    • go-redis/get.go
    • Line 9: warning: exported function GetMap should have comment or be unexported (golint)
    • Line 15: warning: if block ends with a return statement, so drop this else and outdent its block (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign72%

IneffAssign detects ineffectual assignments in Go code.

    • go-redis/get.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/bitly/go-simplejson (invalid package name: "") (ineffassign)
    • Line 9: warning: undeclared name: simplejson (ineffassign)
    • Line 17: warning: undeclared name: simplejson (ineffassign)
    • Line 6: warning: "github.com/bitly/go-simplejson" imported but not used (ineffassign)
    • Line 6: warning: could not import github.com/bitly/go-simplejson (invalid package name: "") (ineffassign)
    • Line 9: warning: undeclared name: simplejson (ineffassign)
    • Line 17: warning: undeclared name: simplejson (ineffassign)
    • Line 6: warning: "github.com/bitly/go-simplejson" imported but not used (ineffassign)
    • go-redis/save.go
    • Line 11: warning: undeclared name: simplejson (ineffassign)
    • Line 20: warning: undeclared name: simplejson (ineffassign)
    • Line 7: warning: "github.com/bitly/go-simplejson" imported but not used (ineffassign)
    • Line 11: warning: undeclared name: simplejson (ineffassign)
    • Line 20: warning: undeclared name: simplejson (ineffassign)
    • Line 7: warning: "github.com/bitly/go-simplejson" imported but not used (ineffassign)
    • go-redis/redis.go
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: could not import dtapps/dta/config (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/go-redis/redis/v8 (invalid package name: "") (ineffassign)
    • Line 12: warning: undeclared name: redis (ineffassign)
    • Line 19: warning: undeclared name: redis (ineffassign)
    • Line 19: warning: undeclared name: redis (ineffassign)
    • Line 7: warning: "github.com/go-redis/redis/v8" imported but not used (ineffassign)
    • Line 5: warning: could not import dtapps/dta/config (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/go-redis/redis/v8 (invalid package name: "") (ineffassign)
    • Line 12: warning: undeclared name: redis (ineffassign)
    • Line 19: warning: undeclared name: redis (ineffassign)
    • Line 19: warning: undeclared name: redis (ineffassign)
    • Line 7: warning: "github.com/go-redis/redis/v8" imported but not used (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!