Preparing report...

Report for github.com/tobgu/qocache

A+    Excellent!    Found 9 issues across 25 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!


gocyclo96%

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.


golint64%

Golint is a linter for Go source code.

    • qocache/config/config.go
    • Line 22: warning: exported type Config should have comment or be unexported (golint)
    • Line 86: warning: exported function GetConfig should have comment or be unexported (golint)
    • qocache/qlog/qlog.go
    • Line 9: warning: exported type Logger should have comment or be unexported (golint)
    • Line 13: warning: exported function NewStdLogger should have comment or be unexported (golint)
    • qocache/http/server.go
    • Line 14: warning: exported type Server should have comment or be unexported (golint)
    • Line 19: warning: exported method Server.ListAndServeAsConfigured should have comment or be unexported (golint)
    • Line 35: warning: exported function NewServer should have comment or be unexported (golint)
    • qocache/strings/strings.go
    • Line 5: warning: exported function IsQuoted should have comment or be unexported (golint)
    • Line 11: warning: exported function TrimQuotes should have comment or be unexported (golint)
    • qocache/cache/cache.go
    • Line 11: warning: exported type Cache should have comment or be unexported (golint)
    • Line 24: warning: exported type LruCache should have comment or be unexported (golint)
    • Line 60: warning: exported method LruCache.Put should have comment or be unexported (golint)
    • Line 87: warning: exported method LruCache.Get should have comment or be unexported (golint)
    • Line 107: warning: exported type CacheStats should have comment or be unexported (golint)
    • Line 117: warning: exported method LruCache.Stats should have comment or be unexported (golint)
    • Line 162: warning: exported function New should have comment or be unexported (golint)
    • qocache/query/query.go
    • Line 25: warning: exported type QueryResult should have comment or be unexported (golint)
    • Line 291: warning: exported function Query should have comment or be unexported (golint)
    • qocache/statistics/statistics.go
    • Line 50: warning: exported method QueryProbe.Success should have comment or be unexported (golint)
    • Line 55: warning: exported method QueryProbe.Missing should have comment or be unexported (golint)
    • Line 73: warning: exported function NewQueryProbe should have comment or be unexported (golint)
    • Line 87: warning: exported method StoreProbe.Success should have comment or be unexported (golint)
    • Line 106: warning: exported function NewStoreProbe should have comment or be unexported (golint)
    • Line 112: warning: exported function New should have comment or be unexported (golint)
    • Line 136: warning: exported method Statistics.Init should have comment or be unexported (golint)
    • Line 140: warning: exported method Statistics.Register should have comment or be unexported (golint)
    • Line 145: warning: comment on exported type GoMemStats should be of the form "GoMemStats ..." (with optional leading article) (golint)
    • Line 159: warning: exported type StatisticsData should have comment or be unexported (golint)
    • Line 189: warning: exported method Statistics.Stats should have comment or be unexported (golint)

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!