Preparing report...

Report for github.com/victorspringer/http-cache

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


golint100%

Golint is a linter for Go source code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign25%

IneffAssign detects ineffectual assignments in Go code.

    • http-cache/adapter/redis/redis.go
    • Line 30: warning: cannot find package "." in: (ineffassign)
    • Line 31: warning: cannot find package "." in: (ineffassign)
    • Line 32: warning: cannot find package "." in: (ineffassign)
    • Line 33: warning: cannot find package "." in: (ineffassign)
    • Line 30: warning: could not import github.com/go-redis/cache (invalid package name: "") (ineffassign)
    • Line 31: warning: could not import github.com/go-redis/redis (invalid package name: "") (ineffassign)
    • Line 32: warning: could not import github.com/victorspringer/http-cache (invalid package name: "") (ineffassign)
    • Line 33: warning: could not import github.com/vmihailenco/msgpack (invalid package name: "") (ineffassign)
    • Line 30: warning: could not import github.com/go-redis/cache (invalid package name: "") (ineffassign)
    • Line 31: warning: could not import github.com/go-redis/redis (invalid package name: "") (ineffassign)
    • Line 32: warning: could not import github.com/victorspringer/http-cache (invalid package name: "") (ineffassign)
    • Line 33: warning: could not import github.com/vmihailenco/msgpack (invalid package name: "") (ineffassign)
    • http-cache/adapter/redis/redis_test.go
    • Line 11: warning: undeclared name: cache (ineffassign)
    • Line 28: warning: undeclared name: cache (ineffassign)
    • Line 36: warning: undeclared name: cache (ineffassign)
    • Line 44: warning: undeclared name: cache (ineffassign)
    • Line 90: warning: undeclared name: cache (ineffassign)
    • Line 8: warning: "github.com/victorspringer/http-cache" imported but not used (ineffassign)
    • http-cache/adapter/memory/benchmark/benchmark_gc_overhead.go
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: could not import github.com/allegro/bigcache (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/victorspringer/http-cache/adapter/memory (invalid package name: "") (ineffassign)
    • Line 10: warning: could not import github.com/allegro/bigcache (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/victorspringer/http-cache/adapter/memory (invalid package name: "") (ineffassign)
    • http-cache/adapter/memory/memory.go
    • Line 33: warning: cannot find package "." in: (ineffassign)
    • Line 33: warning: could not import github.com/victorspringer/http-cache (invalid package name: "") (ineffassign)
    • Line 147: warning: undeclared name: cache (ineffassign)
    • Line 117: warning: undeclared name: cache (ineffassign)
    • Line 33: warning: "github.com/victorspringer/http-cache" imported but not used (ineffassign)
    • Line 33: warning: could not import github.com/victorspringer/http-cache (invalid package name: "") (ineffassign)
    • Line 147: warning: undeclared name: cache (ineffassign)
    • Line 117: warning: undeclared name: cache (ineffassign)
    • Line 33: warning: "github.com/victorspringer/http-cache" imported but not used (ineffassign)
    • http-cache/adapter/memory/memory_test.go
    • Line 18: warning: undeclared name: cache (ineffassign)
    • Line 53: warning: undeclared name: cache (ineffassign)
    • Line 72: warning: undeclared name: cache (ineffassign)
    • Line 77: warning: undeclared name: cache (ineffassign)
    • Line 85: warning: undeclared name: cache (ineffassign)
    • Line 93: warning: undeclared name: cache (ineffassign)
    • Line 102: warning: undeclared name: cache (ineffassign)
    • Line 117: warning: undeclared name: cache (ineffassign)
    • Line 121: warning: undeclared name: cache (ineffassign)
    • Line 125: warning: undeclared name: cache (ineffassign)
    • Line 192: warning: undeclared name: cache (ineffassign)
    • Line 198: warning: undeclared name: cache (ineffassign)
    • Line 204: warning: undeclared name: cache (ineffassign)
    • Line 245: warning: undeclared name: cache (ineffassign)
    • Line 9: warning: "github.com/victorspringer/http-cache" imported but not used (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!