Preparing report...

Report for github.com/prologic/je

A+    Excellent!    Found 13 issues across 49 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!


gocyclo97%

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.

    • je/job.go
    • Line 154: warning: cyclomatic complexity 16 of function (*Job).Execute() is high (> 15) (gocyclo)

golint75%

Golint is a linter for Go source code.

    • je/store.go
    • Line 11: warning: exported var ErrNotExist should have comment or be unexported (golint)
    • Line 14: warning: exported type KeyError should have comment or be unexported (golint)
    • Line 23: warning: exported type ID should have comment or be unexported (golint)
    • Line 29: warning: exported method ID.Bytes should have comment or be unexported (golint)
    • Line 35: warning: exported function ParseId should have comment or be unexported (golint)
    • Line 39: warning: exported type IdGenerator should have comment or be unexported (golint)
    • Line 44: warning: exported method IdGenerator.Next should have comment or be unexported (golint)
    • Line 52: warning: exported type Store should have comment or be unexported (golint)
    • je/bitcask_store.go
    • Line 18: warning: exported type BitcaskStore should have comment or be unexported (golint)
    • Line 25: warning: exported method BitcaskStore.Close should have comment or be unexported (golint)
    • Line 29: warning: exported method BitcaskStore.NextId should have comment or be unexported (golint)
    • Line 33: warning: exported method BitcaskStore.Save should have comment or be unexported (golint)
    • Line 58: warning: exported method BitcaskStore.Get should have comment or be unexported (golint)
    • Line 80: warning: exported method BitcaskStore.Find should have comment or be unexported (golint)
    • Line 97: warning: exported method BitcaskStore.All should have comment or be unexported (golint)
    • Line 118: warning: exported method BitcaskStore.Search should have comment or be unexported (golint)
    • Line 143: warning: exported function NewBitcaskStore should have comment or be unexported (golint)
    • je/bolt_store.go
    • Line 17: warning: exported type BoltStore should have comment or be unexported (golint)
    • Line 24: warning: exported method BoltStore.Close should have comment or be unexported (golint)
    • Line 28: warning: exported method BoltStore.NextId should have comment or be unexported (golint)
    • Line 32: warning: exported method BoltStore.Save should have comment or be unexported (golint)
    • Line 71: warning: exported method BoltStore.Get should have comment or be unexported (golint)
    • Line 100: warning: exported method BoltStore.Find should have comment or be unexported (golint)
    • Line 125: warning: exported method BoltStore.All should have comment or be unexported (golint)
    • Line 149: warning: exported method BoltStore.Search should have comment or be unexported (golint)
    • Line 174: warning: exported function NewBoltStore should have comment or be unexported (golint)
    • je/data.go
    • Line 15: warning: exported const DATA_INPUT should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported type DataType should have comment or be unexported (golint)
    • Line 35: warning: exported type Data should have comment or be unexported (golint)
    • Line 41: warning: exported type LocalData should have comment or be unexported (golint)
    • Line 45: warning: exported function NewLocalData should have comment or be unexported (golint)
    • Line 70: warning: context.Context should be the first parameter of a function (golint)
    • Line 70: warning: exported method LocalData.Tail should have comment or be unexported (golint)
    • je/job.go
    • Line 37: warning: exported function NewJob should have comment or be unexported (golint)
    • Line 54: warning: exported method Job.Id should have comment or be unexported (golint)
    • Line 60: warning: exported method Job.Enqueue should have comment or be unexported (golint)
    • Line 67: warning: exported method Job.Start should have comment or be unexported (golint)
    • Line 76: warning: exported method Job.Kill should have comment or be unexported (golint)
    • Line 95: warning: exported method Job.Stop should have comment or be unexported (golint)
    • Line 116: warning: exported method Job.Log should have comment or be unexported (golint)
    • Line 128: warning: exported method Job.Wait should have comment or be unexported (golint)
    • Line 132: warning: exported method Job.Close should have comment or be unexported (golint)
    • Line 148: warning: exported method Job.Killed should have comment or be unexported (golint)
    • Line 154: warning: exported method Job.Execute should have comment or be unexported (golint)
    • je/memory_store.go
    • Line 12: warning: exported type MemoryStore should have comment or be unexported (golint)
    • Line 20: warning: exported method MemoryStore.Close should have comment or be unexported (golint)
    • Line 24: warning: exported method MemoryStore.NextId should have comment or be unexported (golint)
    • Line 32: warning: exported method MemoryStore.Save should have comment or be unexported (golint)
    • Line 44: warning: exported method MemoryStore.Get should have comment or be unexported (golint)
    • Line 58: warning: exported method MemoryStore.Find should have comment or be unexported (golint)
    • Line 71: warning: exported method MemoryStore.All should have comment or be unexported (golint)
    • Line 81: warning: exported method MemoryStore.Search should have comment or be unexported (golint)
    • Line 110: warning: exported function NewMemoryStore should have comment or be unexported (golint)
    • je/utils.go
    • Line 9: warning: exported type URI should have comment or be unexported (golint)
    • Line 18: warning: exported function ParseURI should have comment or be unexported (golint)
    • je/worker/queue.go
    • Line 7: warning: exported type Queue should have comment or be unexported (golint)
    • Line 13: warning: exported type ChannelQueue should have comment or be unexported (golint)
    • Line 17: warning: exported function NewChannelQueue should have comment or be unexported (golint)
    • Line 23: warning: exported method ChannelQueue.Submit should have comment or be unexported (golint)
    • Line 33: warning: exported method ChannelQueue.Channel should have comment or be unexported (golint)
    • Line 37: warning: exported method ChannelQueue.Close should have comment or be unexported (golint)
    • je/worker/worker.go
    • Line 23: warning: exported function NewPool should have comment or be unexported (golint)
    • Line 33: warning: exported method Pool.GetWorker should have comment or be unexported (golint)
    • Line 40: warning: exported method Pool.Resize should have comment or be unexported (golint)
    • Line 56: warning: exported method Pool.Close should have comment or be unexported (golint)
    • Line 60: warning: exported method Pool.Wait should have comment or be unexported (golint)
    • Line 64: warning: exported method Pool.Submit should have comment or be unexported (golint)
    • Line 69: warning: exported type Worker should have comment or be unexported (golint)
    • Line 76: warning: exported function NewWorker should have comment or be unexported (golint)
    • Line 80: warning: exported method Worker.Id should have comment or be unexported (golint)
    • Line 87: warning: exported method Worker.Kill should have comment or be unexported (golint)
    • Line 94: warning: exported method Worker.Close should have comment or be unexported (golint)
    • Line 108: warning: exported method Worker.Run should have comment or be unexported (golint)
    • je/init.go
    • Line 16: warning: exported function InitMetrics should have comment or be unexported (golint)
    • Line 59: warning: exported function InitDB should have comment or be unexported (golint)
    • Line 98: warning: exported function InitData should have comment or be unexported (golint)
    • je/server.go
    • Line 19: warning: exported const DefaultDataPath should have comment (or a comment on this block) or be unexported (golint)
    • Line 51: warning: exported method Server.AddRoute should have comment or be unexported (golint)
    • Line 55: warning: exported method Server.Shutdown should have comment or be unexported (golint)
    • je/state.go
    • Line 10: warning: exported const STATE_CREATED should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported function ParseState 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!


misspell97%

Misspell Finds commonly misspelled English words

    • je/metrics.go
    • Line 108: warning: "guage" is a misspelling of "gauge" (misspell)
    • Line 119: warning: "guage" is a misspelling of "gauge" (misspell)
    • Line 121: warning: "guage" is a misspelling of "gauge" (misspell)
    • Line 123: warning: "guage" is a misspelling of "gauge" (misspell)
    • Line 128: warning: "guage" is a misspelling of "gauge" (misspell)
    • Line 140: warning: "guage" is a misspelling of "gauge" (misspell)
    • Line 142: warning: "guage" is a misspelling of "gauge" (misspell)
    • Line 144: warning: "guage" is a misspelling of "gauge" (misspell)