Preparing report...

Report for github.com/gizo-network/gizo

A+    Excellent!    Found 31 issues across 69 files

Tweet

gofmt98%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


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!


golint55%

Golint is a linter for Go source code.

    • gizo/job/engine.go
    • Line 27: warning: exported var ErrUnverifiedSignature should have comment or be unexported (golint)
    • Line 31: warning: exported type Job should have comment or be unexported (golint)
    • Line 42: warning: exported method Job.Sign should have comment or be unexported (golint)
    • Line 54: warning: exported method Job.VerifySignature should have comment or be unexported (golint)
    • Line 75: warning: exported method Job.GetSubmissionTime should have comment or be unexported (golint)
    • Line 83: warning: exported method Job.IsEmpty should have comment or be unexported (golint)
    • Line 87: warning: exported function NewJob should have comment or be unexported (golint)
    • Line 105: warning: exported method Job.GetPrivate should have comment or be unexported (golint)
    • Line 113: warning: exported method Job.GetName should have comment or be unexported (golint)
    • Line 121: warning: exported method Job.GetID should have comment or be unexported (golint)
    • Line 125: warning: exported method Job.GetHash should have comment or be unexported (golint)
    • Line 173: warning: exported method Job.GetExec should have comment or be unexported (golint)
    • Line 185: warning: exported method Job.GetLatestExec should have comment or be unexported (golint)
    • Line 189: warning: exported method Job.GetExecs should have comment or be unexported (golint)
    • Line 193: warning: exported method Job.GetSignature should have comment or be unexported (golint)
    • Line 201: warning: exported method Job.AddExec should have comment or be unexported (golint)
    • Line 207: warning: exported method Job.GetTask should have comment or be unexported (golint)
    • Line 211: warning: exported method Job.Serialize should have comment or be unexported (golint)
    • Line 219: warning: exported function DeserializeJob should have comment or be unexported (golint)
    • Line 270: warning: exported method Job.Execute should have comment or be unexported (golint)
    • gizo/job/env.go
    • Line 9: warning: comment on exported type EnvironmentVariable should be of the form "EnvironmentVariable ..." (with optional leading article) (golint)
    • Line 15: warning: exported function NewEnv should have comment or be unexported (golint)
    • Line 22: warning: exported method EnvironmentVariable.GetKey should have comment or be unexported (golint)
    • Line 26: warning: exported method EnvironmentVariable.GetValue should have comment or be unexported (golint)
    • Line 30: warning: exported type EnvironmentVariables should have comment or be unexported (golint)
    • Line 32: warning: exported method EnvironmentVariables.Serialize should have comment or be unexported (golint)
    • Line 40: warning: exported function NewEnvVariables should have comment or be unexported (golint)
    • Line 44: warning: exported function DeserializeEnvs should have comment or be unexported (golint)
    • gizo/job/job_request_single.go
    • Line 9: warning: exported type JobRequestSingle should have comment or be unexported (golint)
    • Line 14: warning: exported function NewJobRequestSingle should have comment or be unexported (golint)
    • Line 21: warning: exported method JobRequestSingle.SetID should have comment or be unexported (golint)
    • Line 25: warning: exported method JobRequestSingle.GetID should have comment or be unexported (golint)
    • Line 29: warning: exported method JobRequestSingle.GetExec should have comment or be unexported (golint)
    • Line 33: warning: exported method JobRequestSingle.Serialize should have comment or be unexported (golint)
    • Line 41: warning: exported function DeserializeJRS should have comment or be unexported (golint)
    • gizo/p2p/rpc.go
    • Line 21: warning: exported method Dispatcher.Rpc should have comment or be unexported (golint)
    • Line 87: warning: exported method Dispatcher.BlockByHash should have comment or be unexported (golint)
    • Line 99: warning: exported method Dispatcher.BlockByHeight should have comment or be unexported (golint)
    • Line 107: warning: exported method Dispatcher.Latest15Blocks should have comment or be unexported (golint)
    • Line 115: warning: exported method Dispatcher.LatestBlock should have comment or be unexported (golint)
    • Line 124: warning: exported method Dispatcher.Score should have comment or be unexported (golint)
    • Line 133: warning: exported method Dispatcher.PublicKey should have comment or be unexported (golint)
    • Line 137: warning: exported method Dispatcher.NewJob should have comment or be unexported (golint)
    • Line 149: warning: exported method Dispatcher.NewExec should have comment or be unexported (golint)
    • Line 161: warning: exported method Dispatcher.WorkersCount should have comment or be unexported (golint)
    • Line 165: warning: exported method Dispatcher.WorkersCountBusy should have comment or be unexported (golint)
    • Line 177: warning: exported method Dispatcher.WorkersCountNotBusy should have comment or be unexported (golint)
    • Line 189: warning: exported method Dispatcher.ExecStatus should have comment or be unexported (golint)
    • Line 202: warning: exported method Dispatcher.CancelExec should have comment or be unexported (golint)
    • Line 210: warning: exported method Dispatcher.ExecTimestamp should have comment or be unexported (golint)
    • Line 218: warning: exported method Dispatcher.ExecTimestampString should have comment or be unexported (golint)
    • Line 226: warning: exported method Dispatcher.ExecDurationNanoseconds should have comment or be unexported (golint)
    • Line 234: warning: exported method Dispatcher.ExecDurationSeconds should have comment or be unexported (golint)
    • Line 242: warning: exported method Dispatcher.ExecDurationMinutes should have comment or be unexported (golint)
    • Line 250: warning: exported method Dispatcher.ExecDurationString should have comment or be unexported (golint)
    • Line 258: warning: exported method Dispatcher.ExecArgs should have comment or be unexported (golint)
    • Line 266: warning: exported method Dispatcher.ExecErr should have comment or be unexported (golint)
    • Line 274: warning: exported method Dispatcher.ExecPriority should have comment or be unexported (golint)
    • Line 282: warning: exported method Dispatcher.ExecResult should have comment or be unexported (golint)
    • Line 290: warning: exported method Dispatcher.ExecRetries should have comment or be unexported (golint)
    • Line 298: warning: exported method Dispatcher.ExecBackoff should have comment or be unexported (golint)
    • Line 306: warning: exported method Dispatcher.ExecExecutionTime should have comment or be unexported (golint)
    • Line 314: warning: exported method Dispatcher.ExecExecutionTimeString should have comment or be unexported (golint)
    • Line 322: warning: exported method Dispatcher.ExecInterval should have comment or be unexported (golint)
    • Line 330: warning: exported method Dispatcher.ExecBy should have comment or be unexported (golint)
    • Line 338: warning: exported method Dispatcher.ExecTtlNanoseconds should have comment or be unexported (golint)
    • Line 346: warning: exported method Dispatcher.ExecTtlSeconds should have comment or be unexported (golint)
    • Line 354: warning: exported method Dispatcher.ExecTtlMinutes should have comment or be unexported (golint)
    • Line 362: warning: exported method Dispatcher.ExecTtlHours should have comment or be unexported (golint)
    • Line 370: warning: exported method Dispatcher.ExecTtlString should have comment or be unexported (golint)
    • Line 382: warning: exported method Dispatcher.LatestBlockHeight should have comment or be unexported (golint)
    • Line 395: warning: exported method Dispatcher.JobSubmisstionTimeUnix should have comment or be unexported (golint)
    • Line 403: warning: exported method Dispatcher.JobSubmisstionTimeString should have comment or be unexported (golint)
    • Line 411: warning: exported method Dispatcher.IsJobPrivate should have comment or be unexported (golint)
    • Line 419: warning: exported method Dispatcher.JobName should have comment or be unexported (golint)
    • Line 427: warning: exported method Dispatcher.JobLatestExec should have comment or be unexported (golint)
    • Line 435: warning: exported method Dispatcher.JobExecs should have comment or be unexported (golint)
    • Line 461: warning: exported method Dispatcher.Solo should have comment or be unexported (golint)
    • Line 472: warning: exported method Dispatcher.Chord should have comment or be unexported (golint)
    • Line 494: warning: exported method Dispatcher.Chain should have comment or be unexported (golint)
    • Line 517: warning: exported method Dispatcher.Batch should have comment or be unexported (golint)
    • gizo/job/batch/batch.go
    • Line 50: warning: exported method Batch.Cancel should have comment or be unexported (golint)
    • Line 54: warning: exported method Batch.GetCancelChan should have comment or be unexported (golint)
    • gizo/job/queue/qItem/item.go
    • Line 1: warning: don't use MixedCaps in package name; qItem should be qitem (golint)
    • Line 10: warning: exported type Item should have comment or be unexported (golint)
    • Line 17: warning: exported function NewItem should have comment or be unexported (golint)
    • Line 26: warning: exported method Item.GetCancel should have comment or be unexported (golint)
    • Line 30: warning: comment on exported method Item.SetExec should be of the form "SetExec ..." (golint)
    • Line 55: warning: exported method Item.Serialize should have comment or be unexported (golint)
    • Line 63: warning: exported function DeserializeItem should have comment or be unexported (golint)
    • gizo/p2p/constants.go
    • Line 6: warning: exported const NodeDB should have comment (or a comment on this block) or be unexported (golint)
    • Line 29: warning: exported var ErrNoDispatchers should have comment or be unexported (golint)
    • gizo/p2p/dispatcher.go
    • Line 46: warning: exported var ErrJobsFull should have comment or be unexported (golint)
    • Line 49: warning: exported type Dispatcher should have comment or be unexported (golint)
    • Line 76: warning: exported method Dispatcher.GetJobs should have comment or be unexported (golint)
    • Line 124: warning: exported method Dispatcher.EmptyJobs should have comment or be unexported (golint)
    • Line 128: warning: exported method Dispatcher.GetWorkerPQ should have comment or be unexported (golint)
    • Line 142: warning: exported method Dispatcher.GetIP should have comment or be unexported (golint)
    • Line 146: warning: exported method Dispatcher.SetIP should have comment or be unexported (golint)
    • Line 150: warning: exported method Dispatcher.GetPubByte should have comment or be unexported (golint)
    • Line 154: warning: exported method Dispatcher.GetPubString should have comment or be unexported (golint)
    • Line 158: warning: exported method Dispatcher.GetPrivByte should have comment or be unexported (golint)
    • Line 162: warning: exported method Dispatcher.GetPrivString should have comment or be unexported (golint)
    • Line 166: warning: exported method Dispatcher.GetWriteQ should have comment or be unexported (golint)
    • Line 170: warning: exported method Dispatcher.GetJobPQ should have comment or be unexported (golint)
    • Line 174: warning: exported method Dispatcher.GetWorkers should have comment or be unexported (golint)
    • Line 178: warning: exported method Dispatcher.GetWorker should have comment or be unexported (golint)
    • Line 182: warning: exported method Dispatcher.SetWorker should have comment or be unexported (golint)
    • Line 186: warning: exported method Dispatcher.GetPeers should have comment or be unexported (golint)
    • Line 190: warning: exported method Dispatcher.GetPeersPubs should have comment or be unexported (golint)
    • Line 198: warning: exported method Dispatcher.GetPeer should have comment or be unexported (golint)
    • Line 202: warning: exported method Dispatcher.AddPeer should have comment or be unexported (golint)
    • Line 206: warning: exported method Dispatcher.GetBC should have comment or be unexported (golint)
    • Line 210: warning: exported method Dispatcher.GetPort should have comment or be unexported (golint)
    • Line 214: warning: exported method Dispatcher.GetUptme should have comment or be unexported (golint)
    • Line 218: warning: exported method Dispatcher.GetUptimeString should have comment or be unexported (golint)
    • Line 222: warning: exported method Dispatcher.GetBench should have comment or be unexported (golint)
    • Line 226: warning: exported method Dispatcher.GetBenchmarks should have comment or be unexported (golint)
    • Line 230: warning: exported method Dispatcher.GetJC should have comment or be unexported (golint)
    • Line 234: warning: exported method Dispatcher.GetWWS should have comment or be unexported (golint)
    • Line 242: warning: exported method Dispatcher.GetDWS should have comment or be unexported (golint)
    • Line 250: warning: exported method Dispatcher.GetRPC should have comment or be unexported (golint)
    • Line 260: warning: should omit 2nd value from range; this loop is equivalent to `for s := range ...` (golint)
    • Line 267: warning: should omit 2nd value from range; this loop is equivalent to `for peer := range ...` (golint)
    • Line 295: warning: exported method Dispatcher.WorkerExists should have comment or be unexported (golint)
    • Line 721: warning: exported function NewDispatcher should have comment or be unexported (golint)
    • gizo/job/chain/chain.go
    • Line 50: warning: exported method Chain.Cancel should have comment or be unexported (golint)
    • Line 54: warning: exported method Chain.GetCancelChan should have comment or be unexported (golint)
    • gizo/job/job_request_multiple.go
    • Line 9: warning: exported type JobRequestMultiple should have comment or be unexported (golint)
    • Line 14: warning: exported function NewJobRequestMultiple should have comment or be unexported (golint)
    • Line 21: warning: exported method JobRequestMultiple.AppendExec should have comment or be unexported (golint)
    • Line 25: warning: exported method JobRequestMultiple.SetID should have comment or be unexported (golint)
    • Line 29: warning: exported method JobRequestMultiple.GetID should have comment or be unexported (golint)
    • Line 33: warning: exported method JobRequestMultiple.GetExec should have comment or be unexported (golint)
    • Line 37: warning: exported method JobRequestMultiple.Serialize should have comment or be unexported (golint)
    • Line 45: warning: exported function DeserializeJRM should have comment or be unexported (golint)
    • gizo/p2p/centrum.go
    • Line 12: warning: exported var ErrNoToken should have comment or be unexported (golint)
    • Line 16: warning: exported type DispatcherBody should have comment or be unexported (golint)
    • Line 22: warning: exported type Centrum should have comment or be unexported (golint)
    • Line 27: warning: exported function NewCentrum should have comment or be unexported (golint)
    • Line 31: warning: exported method Centrum.GetToken should have comment or be unexported (golint)
    • Line 35: warning: exported method Centrum.SetToken should have comment or be unexported (golint)
    • gizo/job/chord/chord.go
    • Line 53: warning: exported method Chord.Cancel should have comment or be unexported (golint)
    • Line 57: warning: exported method Chord.GetCancelChan should have comment or be unexported (golint)
    • Line 61: warning: exported method Chord.GetCallback should have comment or be unexported (golint)
    • gizo/cache/job_cache.go
    • Line 15: warning: exported const MaxCacheLen should have comment (or a comment on this block) or be unexported (golint)
    • Line 19: warning: exported var ErrCacheFull should have comment or be unexported (golint)
    • Line 22: warning: exported type JobCache should have comment or be unexported (golint)
    • Line 108: warning: exported function NewJobCache should have comment or be unexported (golint)
    • Line 116: warning: comment on exported function NewJobCacheNoWatch should be of the form "NewJobCacheNoWatch ..." (golint)
    • gizo/job/solo/solo.go
    • Line 28: warning: exported function NewSolo should have comment or be unexported (golint)
    • Line 37: warning: exported method Solo.Cancel should have comment or be unexported (golint)
    • Line 41: warning: exported method Solo.GetCancelChan should have comment or be unexported (golint)
    • Line 45: warning: exported method Solo.GetJob should have comment or be unexported (golint)
    • Line 49: warning: exported method Solo.GetStatus should have comment or be unexported (golint)
    • gizo/p2p/version.go
    • Line 9: warning: exported type Version should have comment or be unexported (golint)
    • Line 15: warning: exported function NewVersion should have comment or be unexported (golint)
    • Line 23: warning: exported method Version.GetVersion should have comment or be unexported (golint)
    • Line 27: warning: exported method Version.GetHeight should have comment or be unexported (golint)
    • Line 31: warning: exported method Version.GetBlocks should have comment or be unexported (golint)
    • Line 35: warning: exported method Version.Serialize should have comment or be unexported (golint)
    • Line 43: warning: exported function DeserializeVersion should have comment or be unexported (golint)
    • gizo/core/merkletree/tree.go
    • Line 16: warning: exported var ErrNodeDoesntExist should have comment or be unexported (golint)
    • Line 20: warning: comment on exported var ErrTooMuchLeafNodes should be of the form "ErrTooMuchLeafNodes ..." (golint)
    • Line 58: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • gizo/job/constants.go
    • Line 9: warning: exported var ErrExecNotFound should have comment or be unexported (golint)
    • Line 18: warning: exported const MaxExecs should have comment (or a comment on this block) or be unexported (golint)
    • gizo/p2p/message.go
    • Line 23: warning: exported function NewPeerMessage should have comment or be unexported (golint)
    • Line 31: warning: exported method PeerMessage.GetMessage should have comment or be unexported (golint)
    • Line 35: warning: exported method PeerMessage.GetPayload should have comment or be unexported (golint)
    • Line 39: warning: exported method PeerMessage.GetSignature should have comment or be unexported (golint)
    • Line 43: warning: exported method PeerMessage.SetMessage should have comment or be unexported (golint)
    • Line 47: warning: exported method PeerMessage.SetPayload should have comment or be unexported (golint)
    • Line 73: warning: exported method PeerMessage.VerifySignature should have comment or be unexported (golint)
    • Line 99: warning: exported method PeerMessage.Serialize should have comment or be unexported (golint)
    • Line 107: warning: exported function DeserializePeerMessage should have comment or be unexported (golint)
    • gizo/p2p/peertalk.go
    • Line 4: warning: exported const HELLO should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported function HelloMessage should have comment or be unexported (golint)
    • Line 24: warning: exported function InvalidMessage should have comment or be unexported (golint)
    • Line 28: warning: exported function ConnFullMessage should have comment or be unexported (golint)
    • Line 32: warning: exported function JobMessage should have comment or be unexported (golint)
    • Line 36: warning: exported function InvalidSignature should have comment or be unexported (golint)
    • Line 40: warning: exported function ResultMessage should have comment or be unexported (golint)
    • Line 44: warning: exported function ShutMessage should have comment or be unexported (golint)
    • Line 48: warning: exported function ShutAckMessage should have comment or be unexported (golint)
    • Line 52: warning: exported function BlockMessage should have comment or be unexported (golint)
    • Line 56: warning: exported function BlockReqMessage should have comment or be unexported (golint)
    • Line 60: warning: exported function BlockResMessage should have comment or be unexported (golint)
    • Line 64: warning: exported function PeerConnectMessage should have comment or be unexported (golint)
    • Line 68: warning: exported function PeerDisconnectMessage should have comment or be unexported (golint)
    • Line 72: warning: exported function CancelMessage should have comment or be unexported (golint)
    • gizo/core/block.go
    • Line 21: warning: exported var ErrUnableToExport should have comment or be unexported (golint)
    • Line 86: warning: comment on exported method Block.Export should be of the form "Export ..." (golint)
    • gizo/p2p/dispatcher-info.go
    • Line 15: warning: exported function NewDispatcherInfo should have comment or be unexported (golint)
    • Line 19: warning: exported method DispatcherInfo.GetPub should have comment or be unexported (golint)
    • Line 23: warning: exported method DispatcherInfo.GetPeers should have comment or be unexported (golint)
    • Line 27: warning: exported method DispatcherInfo.SetPub should have comment or be unexported (golint)
    • Line 31: warning: exported method DispatcherInfo.SetPeers should have comment or be unexported (golint)
    • Line 35: warning: exported method DispatcherInfo.AddPeer should have comment or be unexported (golint)
    • Line 35: warning: receiver name w should be consistent with previous receiver name d for DispatcherInfo (golint)
    • Line 39: warning: exported method DispatcherInfo.Serialize should have comment or be unexported (golint)
    • Line 47: warning: exported function DeserializeDispatcherInfo should have comment or be unexported (golint)
    • gizo/p2p/worker-queue.go
    • Line 8: warning: exported type WorkerPriorityQueue should have comment or be unexported (golint)
    • Line 12: warning: exported method WorkerPriorityQueue.Push should have comment or be unexported (golint)
    • Line 16: warning: exported method WorkerPriorityQueue.Pop should have comment or be unexported (golint)
    • Line 21: warning: exported method WorkerPriorityQueue.Remove should have comment or be unexported (golint)
    • Line 29: warning: exported method WorkerPriorityQueue.Len should have comment or be unexported (golint)
    • Line 33: warning: exported function NewWorkerPriorityQueue should have comment or be unexported (golint)
    • gizo/job/exec.go
    • Line 16: warning: comment on exported type Exec should be of the form "Exec ..." (with optional leading article) (golint)
    • Line 38: warning: exported function NewExec should have comment or be unexported (golint)
    • Line 61: warning: exported method Exec.Cancel should have comment or be unexported (golint)
    • Line 65: warning: exported method Exec.GetCancelChan should have comment or be unexported (golint)
    • Line 69: warning: exported method Exec.GetEnvs should have comment or be unexported (golint)
    • Line 77: warning: comment on exported method Exec.GetEnvsMap should be of the form "GetEnvsMap ..." (golint)
    • Line 90: warning: exported method Exec.GetTTL should have comment or be unexported (golint)
    • Line 94: warning: exported method Exec.SetTTL should have comment or be unexported (golint)
    • Line 98: warning: exported method Exec.GetInterval should have comment or be unexported (golint)
    • Line 102: warning: exported method Exec.SetInterval should have comment or be unexported (golint)
    • Line 106: warning: exported method Exec.GetPriority should have comment or be unexported (golint)
    • Line 110: warning: exported method Exec.SetPriority should have comment or be unexported (golint)
    • Line 122: warning: exported method Exec.GetExecutionTime should have comment or be unexported (golint)
    • Line 126: warning: comment on exported method Exec.SetExecutionTime should be of the form "SetExecutionTime ..." (golint)
    • Line 135: warning: exported method Exec.GetBackoff should have comment or be unexported (golint)
    • Line 139: warning: exported method Exec.SetBackoff should have comment or be unexported (golint)
    • Line 147: warning: exported method Exec.GetRetriesCount should have comment or be unexported (golint)
    • Line 151: warning: exported method Exec.IncrRetriesCount should have comment or be unexported (golint)
    • Line 155: warning: exported method Exec.GetRetries should have comment or be unexported (golint)
    • Line 159: warning: exported method Exec.SetRetries should have comment or be unexported (golint)
    • Line 167: warning: exported method Exec.GetStatus should have comment or be unexported (golint)
    • Line 171: warning: exported method Exec.SetStatus should have comment or be unexported (golint)
    • Line 175: warning: exported method Exec.GetArgs should have comment or be unexported (golint)
    • Line 179: warning: exported method Exec.SetArgs should have comment or be unexported (golint)
    • Line 183: warning: exported method Exec.GetHash should have comment or be unexported (golint)
    • Line 212: warning: exported method Exec.GetTimestamp should have comment or be unexported (golint)
    • Line 216: warning: exported method Exec.SetTimestamp should have comment or be unexported (golint)
    • Line 220: warning: exported method Exec.GetDuration should have comment or be unexported (golint)
    • Line 224: warning: exported method Exec.SetDuration should have comment or be unexported (golint)
    • Line 228: warning: exported method Exec.GetErr should have comment or be unexported (golint)
    • Line 232: warning: exported method Exec.SetErr should have comment or be unexported (golint)
    • Line 236: warning: exported method Exec.GetResult should have comment or be unexported (golint)
    • Line 240: warning: exported method Exec.SetResult should have comment or be unexported (golint)
    • Line 244: warning: exported method Exec.GetBy should have comment or be unexported (golint)
    • Line 248: warning: exported method Exec.SetBy should have comment or be unexported (golint)
    • Line 256: warning: exported method Exec.Serialize should have comment or be unexported (golint)
    • Line 264: warning: exported function DeserializeExec should have comment or be unexported (golint)
    • gizo/p2p/worker-info.go
    • Line 5: warning: exported type WorkerInfo should have comment or be unexported (golint)
    • Line 11: warning: exported function NewWorkerInfo should have comment or be unexported (golint)
    • Line 15: warning: exported method WorkerInfo.GetPub should have comment or be unexported (golint)
    • Line 19: warning: exported method WorkerInfo.SetPub should have comment or be unexported (golint)
    • Line 23: warning: exported method WorkerInfo.GetJob should have comment or be unexported (golint)
    • Line 27: warning: exported method WorkerInfo.SetJob should have comment or be unexported (golint)
    • Line 31: warning: exported method WorkerInfo.Assign should have comment or be unexported (golint)
    • Line 35: warning: exported method WorkerInfo.GetShut should have comment or be unexported (golint)
    • Line 39: warning: exported method WorkerInfo.SetShut should have comment or be unexported (golint)
    • Line 43: warning: exported method WorkerInfo.Busy should have comment or be unexported (golint)
    • gizo/p2p/worker.go
    • Line 19: warning: exported type Worker should have comment or be unexported (golint)
    • Line 33: warning: exported method Worker.GetItem should have comment or be unexported (golint)
    • Line 37: warning: exported method Worker.SetItem should have comment or be unexported (golint)
    • Line 41: warning: exported method Worker.GetShortlist should have comment or be unexported (golint)
    • Line 45: warning: exported method Worker.SetShortlist should have comment or be unexported (golint)
    • Line 49: warning: exported method Worker.GetBusy should have comment or be unexported (golint)
    • Line 53: warning: exported method Worker.SetBusy should have comment or be unexported (golint)
    • Line 57: warning: exported method Worker.NodeTypeDispatcher should have comment or be unexported (golint)
    • Line 61: warning: exported method Worker.GetState should have comment or be unexported (golint)
    • Line 65: warning: exported method Worker.SetState should have comment or be unexported (golint)
    • Line 69: warning: exported method Worker.GetPubByte should have comment or be unexported (golint)
    • Line 73: warning: exported method Worker.GetPubString should have comment or be unexported (golint)
    • Line 77: warning: exported method Worker.GetPrivByte should have comment or be unexported (golint)
    • Line 81: warning: exported method Worker.GetPrivString should have comment or be unexported (golint)
    • Line 85: warning: exported method Worker.GetUptme should have comment or be unexported (golint)
    • Line 89: warning: exported method Worker.GetDispatcher should have comment or be unexported (golint)
    • Line 93: warning: exported method Worker.SetDispatcher should have comment or be unexported (golint)
    • Line 97: warning: exported method Worker.GetUptimeString should have comment or be unexported (golint)
    • Line 101: warning: exported method Worker.Start should have comment or be unexported (golint)
    • Line 174: warning: exported method Worker.Disconnect should have comment or be unexported (golint)
    • Line 178: warning: exported method Worker.Connect should have comment or be unexported (golint)
    • Line 193: warning: exported method Worker.Dial should have comment or be unexported (golint)
    • Line 208: warning: exported method Worker.WatchInterrupt should have comment or be unexported (golint)
    • Line 222: warning: exported method Worker.GetDispatchers should have comment or be unexported (golint)
    • Line 233: warning: exported function NewWorker should have comment or be unexported (golint)
    • gizo/job/queue/pq.go
    • Line 10: warning: exported type JobPriorityQueue should have comment or be unexported (golint)
    • Line 14: warning: exported method JobPriorityQueue.Push should have comment or be unexported (golint)
    • Line 28: warning: exported method JobPriorityQueue.PushItem should have comment or be unexported (golint)
    • Line 34: warning: exported method JobPriorityQueue.Pop should have comment or be unexported (golint)
    • Line 39: warning: exported method JobPriorityQueue.Remove should have comment or be unexported (golint)
    • Line 43: warning: exported method JobPriorityQueue.GetPQ should have comment or be unexported (golint)
    • Line 48: warning: exported method JobPriorityQueue.Len should have comment or be unexported (golint)
    • Line 52: warning: exported function NewJobPriorityQueue should have comment or be unexported (golint)
    • gizo/benchmark/engine.go
    • Line 26: warning: exported method Engine.Serialize should have comment or be unexported (golint)
    • Line 34: warning: exported function DeserializeBenchmarkEngine should have comment or be unexported (golint)

gocyclo92%

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.

    • gizo/p2p/dispatcher.go
    • Line 468: warning: cyclomatic complexity 23 of function (Dispatcher).handleNodeConnect() is high (> 15) (gocyclo)
    • Line 388: warning: cyclomatic complexity 19 of function (Dispatcher).dPeerTalk() is high (> 15) (gocyclo)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell94%

Misspell Finds commonly misspelled English words

    • gizo/p2p/dispatcher.go
    • Line 423: warning: "neigbhours" is a misspelling of "neighbours" (misspell)
    • Line 509: warning: "neigbhours" is a misspelling of "neighbours" (misspell)
    • Line 663: warning: "verison" is a misspelling of "version" (misspell)