Preparing report...

Report for github.com/st3fan/cache

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


golint40%

Golint is a linter for Go source code.

    • cache/redis_cache.go
    • Line 13: warning: exported type RedisCacheConfig should have comment or be unexported (golint)
    • Line 26: warning: exported type RedisCache should have comment or be unexported (golint)
    • Line 31: warning: exported function NewRedisCache should have comment or be unexported (golint)
    • Line 35: warning: exported function NewRedisCacheWithConfig should have comment or be unexported (golint)
    • Line 46: warning: exported method RedisCache.Clear should have comment or be unexported (golint)
    • Line 50: warning: exported method RedisCache.Evict should have comment or be unexported (golint)
    • Line 54: warning: exported method RedisCache.Get should have comment or be unexported (golint)
    • Line 62: warning: exported method RedisCache.Put should have comment or be unexported (golint)
    • Line 66: warning: exported method RedisCache.PutIfAbsent should have comment or be unexported (golint)
    • Line 70: warning: exported method RedisCache.Close should have comment or be unexported (golint)
    • cache/map_cache.go
    • Line 18: warning: exported type MapCacheConfig should have comment or be unexported (golint)
    • Line 52: warning: exported type MapCache should have comment or be unexported (golint)
    • Line 58: warning: exported function NewMapCache should have comment or be unexported (golint)
    • Line 62: warning: exported function NewMapCacheWithConfig should have comment or be unexported (golint)
    • Line 71: warning: exported method MapCache.Clear should have comment or be unexported (golint)
    • Line 76: warning: exported method MapCache.Evict should have comment or be unexported (golint)
    • Line 81: warning: exported method MapCache.Get should have comment or be unexported (golint)
    • Line 91: warning: exported method MapCache.Put should have comment or be unexported (golint)
    • Line 96: warning: exported method MapCache.PutIfAbsent should have comment or be unexported (golint)
    • Line 101: warning: exported method MapCache.Close should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign80%

IneffAssign detects ineffectual assignments in Go code.

    • cache/map_cache.go
    • Line 11: warning: no required module provides package github.com/st3fan/task; to add it: (ineffassign)
    • Line 11: warning: could not import github.com/st3fan/task (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/st3fan/task (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!