Preparing report...

Report for github.com/hongliang5316/go-mlcache

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


golint33%

Golint is a linter for Go source code.

    • go-mlcache/mlcache.go
    • Line 12: warning: exported type CacheStatus should have comment or be unexported (golint)
    • Line 26: warning: exported type Opt should have comment or be unexported (golint)
    • Line 39: warning: exported type MLCache should have comment or be unexported (golint)
    • Line 45: warning: exported type GetCacheHandler should have comment or be unexported (golint)
    • Line 47: warning: exported type SetCacheHandler should have comment or be unexported (golint)
    • Line 49: warning: exported type LC should have comment or be unexported (golint)
    • Line 75: warning: exported function New should have comment or be unexported (golint)
    • go-mlcache/lock.go
    • Line 8: warning: exported type KeyLock should have comment or be unexported (golint)
    • Line 36: warning: exported method KeyLock.TimeoutLock should have comment or be unexported (golint)
    • Line 51: warning: exported method KeyLock.Trylock should have comment or be unexported (golint)
    • Line 62: warning: exported method KeyLock.Unlock should have comment or be unexported (golint)

gocyclo66%

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.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!