Preparing report...

Report for github.com/abhishekkr/dory

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!


golint0%

Golint is a linter for Go source code.

    • dory/doryBackend/localAuth.go
    • Line 1: warning: don't use MixedCaps in package name; doryBackend should be dorybackend (golint)
    • Line 24: warning: exported var DORY_ADMIN_TOKEN should have comment or be unexported (golint)
    • Line 275: warning: comment on exported method LocalAuth.DoryPing should be of the form "DoryPing ..." (golint)
    • dory/doryCluster/member.go
    • Line 1: warning: don't use MixedCaps in package name; doryCluster should be dorycluster (golint)
    • Line 31: warning: exported function Join should have comment or be unexported (golint)
    • Line 45: warning: exported function Members should have comment or be unexported (golint)
    • dory/doryClient/client.go
    • Line 1: warning: don't use MixedCaps in package name; doryClient should be doryclient (golint)
    • Line 8: warning: exported function HandleClientAuth should have comment or be unexported (golint)
    • dory/doryClient/clientHTTP.go
    • Line 1: warning: don't use MixedCaps in package name; doryClient should be doryclient (golint)
    • Line 14: warning: exported type DoryClient should have comment or be unexported (golint)
    • Line 91: warning: exported method DoryClient.Set should have comment or be unexported (golint)
    • Line 103: warning: exported method DoryClient.ShareSecret should have comment or be unexported (golint)
    • Line 109: warning: exported method DoryClient.ShareSecretFromFile should have comment or be unexported (golint)
    • Line 119: warning: exported method DoryClient.Get should have comment or be unexported (golint)
    • Line 136: warning: exported method DoryClient.FetchSecret should have comment or be unexported (golint)
    • Line 142: warning: exported method DoryClient.RefreshSecret should have comment or be unexported (golint)
    • Line 150: warning: exported method DoryClient.Del should have comment or be unexported (golint)
    • Line 167: warning: exported method DoryClient.PurgeSecret should have comment or be unexported (golint)
    • Line 171: warning: exported method DoryClient.PurgeAll should have comment or be unexported (golint)
    • Line 188: warning: exported method DoryClient.PurgeOne should have comment or be unexported (golint)
    • Line 205: warning: exported method DoryClient.List should have comment or be unexported (golint)
    • Line 222: warning: exported method DoryClient.Ping should have comment or be unexported (golint)
    • dory/doryMemory/cachetable.go
    • Line 1: warning: don't use MixedCaps in package name; doryMemory should be dorymemory (golint)
    • Line 19: warning: exported method Cache2Go.Add should have comment or be unexported (golint)
    • Line 24: warning: exported method Cache2Go.Exists should have comment or be unexported (golint)
    • Line 28: warning: exported method Cache2Go.Delete should have comment or be unexported (golint)
    • Line 33: warning: exported method Cache2Go.Value should have comment or be unexported (golint)
    • Line 41: warning: exported method Cache2Go.List should have comment or be unexported (golint)
    • Line 51: warning: exported method Cache2Go.Count should have comment or be unexported (golint)
    • Line 55: warning: exported method Cache2Go.Purge should have comment or be unexported (golint)
    • Line 61: warning: exported method Cache2Go.PurgeOne should have comment or be unexported (golint)
    • dory/doryBackend/api.go
    • Line 1: warning: don't use MixedCaps in package name; doryBackend should be dorybackend (golint)
    • Line 29: warning: comment on exported function Wip should be of the form "Wip ..." (golint)
    • Line 39: warning: comment on exported function DoryHelp should be of the form "DoryHelp ..." (golint)
    • dory/dory.go
    • Line 20: warning: comment on exported var HTTPAt should be of the form "HTTPAt ..." (golint)
    • dory/doryMemory/diskv.go
    • Line 1: warning: don't use MixedCaps in package name; doryMemory should be dorymemory (golint)
    • Line 16: warning: exported method Diskv.Add should have comment or be unexported (golint)
    • Line 22: warning: exported method Diskv.Exists should have comment or be unexported (golint)
    • Line 26: warning: exported method Diskv.Delete should have comment or be unexported (golint)
    • Line 31: warning: exported method Diskv.Value should have comment or be unexported (golint)
    • Line 35: warning: exported method Diskv.List should have comment or be unexported (golint)
    • Line 46: warning: exported method Diskv.Count should have comment or be unexported (golint)
    • Line 54: warning: exported method Diskv.Purge should have comment or be unexported (golint)
    • Line 65: warning: exported method Diskv.PurgeOne should have comment or be unexported (golint)
    • dory/doryMemory/memory.go
    • Line 1: warning: don't use MixedCaps in package name; doryMemory should be dorymemory (golint)
    • Line 19: warning: exported var DoryDiskvBaseDir should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign90%

IneffAssign detects ineffectual assignments in Go code.


misspell90%

Misspell Finds commonly misspelled English words