Preparing report...

Report for github.com/moleculer-go/moleculer

A+    Excellent!    Found 43 issues across 86 files

Tweet

gofmt87%

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!


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.


golint61%

Golint is a linter for Go source code.

    • moleculer/strategy/round-robin.go
    • Line 8: warning: exported function NewRoundRobinStrategy should have comment or be unexported (golint)
    • Line 12: warning: exported method RoundRobinStrategy.Select should have comment or be unexported (golint)
    • moleculer/transit/transit.go
    • Line 8: warning: exported type TransportHandler should have comment or be unexported (golint)
    • Line 10: warning: exported type ValidateMsgFunc should have comment or be unexported (golint)
    • Line 12: warning: exported type Transit should have comment or be unexported (golint)
    • Line 24: warning: exported type Transport should have comment or be unexported (golint)
    • moleculer/cli/cmd/root.go
    • Line 26: warning: exported type RunOpts should have comment or be unexported (golint)
    • Line 31: warning: exported var UserOpts should have comment or be unexported (golint)
    • moleculer/transit/amqp/amqp.go
    • Line 16: warning: exported const DurationNotDefined should have comment (or a comment on this block) or be unexported (golint)
    • Line 33: warning: exported var DefaultConfig should have comment or be unexported (golint)
    • Line 41: warning: exported type AmqpTransporter should have comment or be unexported (golint)
    • Line 57: warning: exported type AmqpOptions should have comment or be unexported (golint)
    • Line 123: warning: exported function CreateAmqpTransporter should have comment or be unexported (golint)
    • Line 132: warning: exported method AmqpTransporter.Connect should have comment or be unexported (golint)
    • Line 209: warning: exported method AmqpTransporter.Disconnect should have comment or be unexported (golint)
    • Line 249: warning: exported method AmqpTransporter.Subscribe should have comment or be unexported (golint)
    • Line 308: warning: exported method AmqpTransporter.Publish should have comment or be unexported (golint)
    • Line 348: warning: exported method AmqpTransporter.SetPrefix should have comment or be unexported (golint)
    • Line 352: warning: exported method AmqpTransporter.SetNodeID should have comment or be unexported (golint)
    • Line 356: warning: exported method AmqpTransporter.SetSerializer should have comment or be unexported (golint)
    • moleculer/serializer/jsonSerializer.go
    • Line 21: warning: exported type JSONSerializer should have comment or be unexported (golint)
    • Line 25: warning: exported type JSONPayload should have comment or be unexported (golint)
    • Line 30: warning: exported function CreateJSONSerializer should have comment or be unexported (golint)
    • Line 45: warning: exported method JSONSerializer.BytesToPayload should have comment or be unexported (golint)
    • Line 90: warning: exported method JSONSerializer.PayloadToBytes should have comment or be unexported (golint)
    • Line 94: warning: exported method JSONSerializer.PayloadToString should have comment or be unexported (golint)
    • Line 126: warning: exported method JSONPayload.Remove should have comment or be unexported (golint)
    • Line 138: warning: exported method JSONPayload.AddItem should have comment or be unexported (golint)
    • Line 147: warning: exported method JSONPayload.Add should have comment or be unexported (golint)
    • Line 160: warning: exported method JSONPayload.AddMany should have comment or be unexported (golint)
    • Line 247: warning: exported method JSONSerializer.MapToPayload should have comment or be unexported (golint)
    • Line 251: warning: exported method JSONSerializer.PayloadToContextMap should have comment or be unexported (golint)
    • Line 255: warning: exported method JSONPayload.Get should have comment or be unexported (golint)
    • Line 255: warning: receiver name jp should be consistent with previous receiver name jpayload for JSONPayload (golint)
    • Line 267: warning: receiver name p should be consistent with previous receiver name jpayload for JSONPayload (golint)
    • Line 275: warning: exported method JSONPayload.Exists should have comment or be unexported (golint)
    • Line 275: warning: receiver name payload should be consistent with previous receiver name jpayload for JSONPayload (golint)
    • Line 279: warning: exported method JSONPayload.Value should have comment or be unexported (golint)
    • Line 279: warning: receiver name payload should be consistent with previous receiver name jpayload for JSONPayload (golint)
    • Line 283: warning: exported method JSONPayload.Int should have comment or be unexported (golint)
    • Line 283: warning: receiver name payload should be consistent with previous receiver name jpayload for JSONPayload (golint)
    • Line 287: warning: exported method JSONPayload.Int64 should have comment or be unexported (golint)
    • Line 287: warning: receiver name payload should be consistent with previous receiver name jpayload for JSONPayload (golint)
    • Line 291: warning: exported method JSONPayload.Uint should have comment or be unexported (golint)
    • Line 291: warning: receiver name payload should be consistent with previous receiver name jpayload for JSONPayload (golint)
    • Line 295: warning: exported method JSONPayload.Time should have comment or be unexported (golint)
    • Line 295: warning: receiver name payload should be consistent with previous receiver name jpayload for JSONPayload (golint)
    • Line 299: warning: exported method JSONPayload.Len should have comment or be unexported (golint)
    • Line 299: warning: receiver name jp should be consistent with previous receiver name jpayload for JSONPayload (golint)
    • Line 306: warning: exported method JSONPayload.First should have comment or be unexported (golint)
    • Line 306: warning: receiver name jp should be consistent with previous receiver name jpayload for JSONPayload (golint)
    • Line 313: warning: exported method JSONPayload.StringArray should have comment or be unexported (golint)
    • Line 313: warning: receiver name payload should be consistent with previous receiver name jpayload for JSONPayload (golint)
    • Line 356: warning: exported method JSONPayload.MapArray should have comment or be unexported (golint)
    • Line 356: warning: receiver name payload should be consistent with previous receiver name jpayload for JSONPayload (golint)
    • Line 368: warning: exported method JSONPayload.ValueArray should have comment or be unexported (golint)
    • Line 368: warning: receiver name payload should be consistent with previous receiver name jpayload for JSONPayload (golint)
    • Line 380: warning: exported method JSONPayload.IntArray should have comment or be unexported (golint)
    • Line 380: warning: receiver name payload should be consistent with previous receiver name jpayload for JSONPayload (golint)
    • Line 392: warning: exported method JSONPayload.Int64Array should have comment or be unexported (golint)
    • Line 392: warning: receiver name payload should be consistent with previous receiver name jpayload for JSONPayload (golint)
    • Line 404: warning: exported method JSONPayload.UintArray should have comment or be unexported (golint)
    • Line 404: warning: receiver name payload should be consistent with previous receiver name jpayload for JSONPayload (golint)
    • Line 416: warning: exported method JSONPayload.Float32Array should have comment or be unexported (golint)
    • Line 416: warning: receiver name payload should be consistent with previous receiver name jpayload for JSONPayload (golint)
    • Line 428: warning: exported method JSONPayload.FloatArray should have comment or be unexported (golint)
    • Line 428: warning: receiver name payload should be consistent with previous receiver name jpayload for JSONPayload (golint)
    • Line 440: warning: exported method JSONPayload.BsonArray should have comment or be unexported (golint)
    • Line 440: warning: receiver name jp should be consistent with previous receiver name jpayload for JSONPayload (golint)
    • Line 457: warning: exported method JSONPayload.Bson should have comment or be unexported (golint)
    • Line 457: warning: receiver name jp should be consistent with previous receiver name jpayload for JSONPayload (golint)
    • Line 474: warning: exported method JSONPayload.BoolArray should have comment or be unexported (golint)
    • Line 474: warning: receiver name payload should be consistent with previous receiver name jpayload for JSONPayload (golint)
    • Line 486: warning: exported method JSONPayload.ByteArray should have comment or be unexported (golint)
    • Line 486: warning: receiver name payload should be consistent with previous receiver name jpayload for JSONPayload (golint)
    • Line 490: warning: exported method JSONPayload.TimeArray should have comment or be unexported (golint)
    • Line 490: warning: receiver name payload should be consistent with previous receiver name jpayload for JSONPayload (golint)
    • Line 501: warning: exported method JSONPayload.At should have comment or be unexported (golint)
    • Line 501: warning: receiver name payload should be consistent with previous receiver name jpayload for JSONPayload (golint)
    • Line 512: warning: exported method JSONPayload.Array should have comment or be unexported (golint)
    • Line 512: warning: receiver name payload should be consistent with previous receiver name jpayload for JSONPayload (golint)
    • Line 524: warning: exported method JSONPayload.Sort should have comment or be unexported (golint)
    • Line 524: warning: receiver name p should be consistent with previous receiver name jpayload for JSONPayload (golint)
    • Line 533: warning: exported method JSONPayload.IsArray should have comment or be unexported (golint)
    • Line 533: warning: receiver name payload should be consistent with previous receiver name jpayload for JSONPayload (golint)
    • Line 537: warning: exported method JSONPayload.IsMap should have comment or be unexported (golint)
    • Line 537: warning: receiver name payload should be consistent with previous receiver name jpayload for JSONPayload (golint)
    • Line 541: warning: exported method JSONPayload.ForEach should have comment or be unexported (golint)
    • Line 541: warning: receiver name payload should be consistent with previous receiver name jpayload for JSONPayload (golint)
    • Line 547: warning: exported method JSONPayload.MapOver should have comment or be unexported (golint)
    • Line 547: warning: receiver name p should be consistent with previous receiver name jpayload for JSONPayload (golint)
    • Line 554: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 559: warning: exported method JSONPayload.Bool should have comment or be unexported (golint)
    • Line 559: warning: receiver name payload should be consistent with previous receiver name jpayload for JSONPayload (golint)
    • Line 563: warning: exported method JSONPayload.Float should have comment or be unexported (golint)
    • Line 563: warning: receiver name payload should be consistent with previous receiver name jpayload for JSONPayload (golint)
    • Line 567: warning: exported method JSONPayload.Float32 should have comment or be unexported (golint)
    • Line 567: warning: receiver name payload should be consistent with previous receiver name jpayload for JSONPayload (golint)
    • Line 571: warning: exported method JSONPayload.IsError should have comment or be unexported (golint)
    • Line 571: warning: receiver name payload should be consistent with previous receiver name jpayload for JSONPayload (golint)
    • Line 575: warning: receiver name payload should be consistent with previous receiver name jpayload for JSONPayload (golint)
    • Line 582: warning: exported method JSONPayload.ErrorPayload should have comment or be unexported (golint)
    • Line 582: warning: receiver name p should be consistent with previous receiver name jpayload for JSONPayload (golint)
    • Line 600: warning: exported method JSONPayload.StringIdented should have comment or be unexported (golint)
    • Line 600: warning: receiver name jp should be consistent with previous receiver name jpayload for JSONPayload (golint)
    • Line 604: warning: receiver name jp should be consistent with previous receiver name jpayload for JSONPayload (golint)
    • Line 622: warning: exported method JSONPayload.RawMap should have comment or be unexported (golint)
    • Line 622: warning: receiver name payload should be consistent with previous receiver name jpayload for JSONPayload (golint)
    • Line 631: warning: exported method JSONPayload.Map should have comment or be unexported (golint)
    • Line 631: warning: receiver name payload should be consistent with previous receiver name jpayload for JSONPayload (golint)
    • moleculer/registry/actionCatalog.go
    • Line 16: warning: exported type ActionEntry should have comment or be unexported (golint)
    • Line 26: warning: exported type ActionCatalog should have comment or be unexported (golint)
    • Line 31: warning: exported function CreateActionCatalog should have comment or be unexported (golint)
    • Line 37: warning: exported type ActionError should have comment or be unexported (golint)
    • Line 47: warning: exported method ActionError.Stack should have comment or be unexported (golint)
    • Line 51: warning: exported method ActionError.Action should have comment or be unexported (golint)
    • Line 93: warning: exported method ActionEntry.TargetNodeID should have comment or be unexported (golint)
    • Line 97: warning: exported method ActionEntry.IsLocal should have comment or be unexported (golint)
    • Line 101: warning: exported method ActionEntry.Service should have comment or be unexported (golint)
    • Line 131: warning: exported method ActionCatalog.Update should have comment or be unexported (golint)
    • Line 155: warning: exported method ActionCatalog.Remove should have comment or be unexported (golint)
    • Line 170: warning: exported method ActionCatalog.NextFromNode should have comment or be unexported (golint)
    • Line 219: warning: exported method ActionCatalog.Find should have comment or be unexported (golint)
    • moleculer/registry/eventCatalog.go
    • Line 14: warning: exported type EventEntry should have comment or be unexported (golint)
    • Line 21: warning: exported method EventEntry.TargetNodeID should have comment or be unexported (golint)
    • Line 25: warning: exported method EventEntry.IsLocal should have comment or be unexported (golint)
    • Line 51: warning: exported type EventCatalog should have comment or be unexported (golint)
    • Line 56: warning: exported function CreateEventCatalog should have comment or be unexported (golint)
    • Line 75: warning: exported method EventCatalog.Update should have comment or be unexported (golint)
    • Line 88: warning: exported method EventCatalog.Remove should have comment or be unexported (golint)
    • moleculer/examples/math2/math.service.go
    • Line 10: warning: exported type MathService should have comment or be unexported (golint)
    • Line 13: warning: exported method MathService.Name should have comment or be unexported (golint)
    • Line 17: warning: exported method MathService.Add should have comment or be unexported (golint)
    • Line 21: warning: exported method MathService.Sub should have comment or be unexported (golint)
    • moleculer/context/contextFactory.go
    • Line 14: warning: exported type Context should have comment or be unexported (golint)
    • Line 31: warning: exported function BrokerContext should have comment or be unexported (golint)
    • Line 73: warning: comment on exported method Context.BrokerDelegates should be of the form "BrokerDelegates ..." (golint)
    • Line 201: warning: exported method Context.IsBroadcast should have comment or be unexported (golint)
    • Line 205: warning: exported method Context.RequestID should have comment or be unexported (golint)
    • Line 244: warning: exported method Context.MCall should have comment or be unexported (golint)
    • Line 268: warning: exported method Context.WaitFor should have comment or be unexported (golint)
    • Line 272: warning: exported method Context.Publish should have comment or be unexported (golint)
    • Line 276: warning: exported method Context.ActionName should have comment or be unexported (golint)
    • Line 280: warning: exported method Context.EventName should have comment or be unexported (golint)
    • Line 284: warning: exported method Context.Groups should have comment or be unexported (golint)
    • Line 288: warning: exported method Context.Payload should have comment or be unexported (golint)
    • Line 292: warning: exported method Context.SetTargetNodeID should have comment or be unexported (golint)
    • Line 297: warning: exported method Context.TargetNodeID should have comment or be unexported (golint)
    • Line 301: warning: exported method Context.SourceNodeID should have comment or be unexported (golint)
    • Line 305: warning: exported method Context.ID should have comment or be unexported (golint)
    • Line 309: warning: exported method Context.Meta should have comment or be unexported (golint)
    • Line 313: warning: exported method Context.UpdateMeta should have comment or be unexported (golint)
    • Line 317: warning: exported method Context.Logger should have comment or be unexported (golint)
    • moleculer/test/counter.go
    • Line 10: warning: exported var CounterCheckTimeout should have comment or be unexported (golint)
    • Line 12: warning: exported function Counter should have comment or be unexported (golint)
    • Line 16: warning: exported type CounterCheck should have comment or be unexported (golint)
    • Line 22: warning: exported method CounterCheck.Inc should have comment or be unexported (golint)
    • Line 41: warning: exported method CounterCheck.Clear should have comment or be unexported (golint)
    • Line 48: warning: exported method CounterCheck.CheckPrefixed should have comment or be unexported (golint)
    • Line 52: warning: exported method CounterCheck.Check should have comment or be unexported (golint)
    • moleculer/transit/nats/stan.go
    • Line 14: warning: exported type StanTransporter should have comment or be unexported (golint)
    • Line 27: warning: exported type StanOptions should have comment or be unexported (golint)
    • Line 38: warning: exported function CreateStanTransporter should have comment or be unexported (golint)
    • Line 49: warning: exported method StanTransporter.Connect should have comment or be unexported (golint)
    • Line 66: warning: exported method StanTransporter.Disconnect should have comment or be unexported (golint)
    • Line 101: warning: exported method StanTransporter.SetPrefix should have comment or be unexported (golint)
    • Line 105: warning: exported method StanTransporter.SetNodeID should have comment or be unexported (golint)
    • Line 108: warning: exported method StanTransporter.SetSerializer should have comment or be unexported (golint)
    • Line 112: warning: exported method StanTransporter.Subscribe should have comment or be unexported (golint)
    • Line 136: warning: exported method StanTransporter.Publish should have comment or be unexported (golint)
    • moleculer/strategy/random.go
    • Line 7: warning: comment on exported type RandomStrategy should be of the form "RandomStrategy ..." (with optional leading article) (golint)
    • Line 11: warning: exported method RandomStrategy.Select should have comment or be unexported (golint)
    • moleculer/middleware/middleware.go
    • Line 8: warning: exported type AfterActionParams should have comment or be unexported (golint)
    • Line 13: warning: exported type Dispatch should have comment or be unexported (golint)
    • Line 18: warning: exported function Dispatcher should have comment or be unexported (golint)
    • Line 35: warning: exported method Dispatch.Add should have comment or be unexported (golint)
    • Line 43: warning: exported method Dispatch.Has should have comment or be unexported (golint)
    • Line 82: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • moleculer/test/node_mock.go
    • Line 5: warning: exported type NodeMock should have comment or be unexported (golint)
    • Line 16: warning: exported method NodeMock.Update should have comment or be unexported (golint)
    • Line 20: warning: exported method NodeMock.Unavailable should have comment or be unexported (golint)
    • Line 23: warning: exported method NodeMock.Available should have comment or be unexported (golint)
    • Line 27: warning: exported method NodeMock.GetID should have comment or be unexported (golint)
    • Line 31: warning: exported method NodeMock.IncreaseSequence should have comment or be unexported (golint)
    • Line 35: warning: exported method NodeMock.ExportAsMap should have comment or be unexported (golint)
    • Line 38: warning: exported method NodeMock.IsAvailable should have comment or be unexported (golint)
    • Line 41: warning: exported method NodeMock.HeartBeat should have comment or be unexported (golint)
    • Line 44: warning: exported method NodeMock.IsExpired should have comment or be unexported (golint)
    • Line 47: warning: exported method NodeMock.Publish should have comment or be unexported (golint)
    • moleculer/broker/broker.go
    • Line 90: warning: exported type ServiceBroker should have comment or be unexported (golint)
    • Line 121: warning: comment on exported method ServiceBroker.LocalBus should be of the form "LocalBus ..." (golint)
    • Line 304: warning: exported method ServiceBroker.KnowAction should have comment or be unexported (golint)
    • Line 381: warning: exported method ServiceBroker.Start should have comment or be unexported (golint)
    • Line 418: warning: exported method ServiceBroker.Stop should have comment or be unexported (golint)
    • Line 476: warning: should omit 2nd value from range; this loop is equivalent to `for label := range ...` (golint)
    • Line 504: warning: exported method ServiceBroker.Emit should have comment or be unexported (golint)
    • Line 513: warning: exported method ServiceBroker.Broadcast should have comment or be unexported (golint)
    • Line 522: warning: exported method ServiceBroker.IsStarted should have comment or be unexported (golint)
    • Line 526: warning: exported method ServiceBroker.GetLogger should have comment or be unexported (golint)
    • Line 530: warning: exported method ServiceBroker.LocalNode should have comment or be unexported (golint)
    • moleculer/transit/memory/memory.go
    • Line 14: warning: exported type Subscription should have comment or be unexported (golint)
    • Line 21: warning: exported type SharedMemory should have comment or be unexported (golint)
    • Line 26: warning: exported type MemoryTransporter should have comment or be unexported (golint)
    • Line 33: warning: exported function Create should have comment or be unexported (golint)
    • Line 44: warning: exported method MemoryTransporter.SetPrefix should have comment or be unexported (golint)
    • Line 48: warning: exported method MemoryTransporter.SetNodeID should have comment or be unexported (golint)
    • Line 51: warning: exported method MemoryTransporter.SetSerializer should have comment or be unexported (golint)
    • Line 55: warning: exported method MemoryTransporter.Connect should have comment or be unexported (golint)
    • Line 65: warning: exported method MemoryTransporter.Disconnect should have comment or be unexported (golint)
    • Line 95: warning: exported method MemoryTransporter.Subscribe should have comment or be unexported (golint)
    • Line 111: warning: exported method MemoryTransporter.Publish should have comment or be unexported (golint)
    • moleculer/version/version.go
    • Line 3: warning: comment on exported function Moleculer should be of the form "Moleculer ..." (golint)
    • Line 8: warning: exported function MoleculerProtocol should have comment or be unexported (golint)
    • Line 12: warning: exported function Go should have comment or be unexported (golint)
    • moleculer/moleculer.go
    • Line 15: warning: exported type ForEachFunc should have comment or be unexported (golint)
    • Line 70: warning: exported type ObjectSchema should have comment or be unexported (golint)
    • Line 74: warning: exported type Action should have comment or be unexported (golint)
    • Line 82: warning: exported type Event should have comment or be unexported (golint)
    • Line 88: warning: exported type ServiceSchema should have comment or be unexported (golint)
    • Line 103: warning: exported type Mixin should have comment or be unexported (golint)
    • Line 116: warning: exported type TransporterFactoryFunc should have comment or be unexported (golint)
    • Line 117: warning: exported type StrategyFactoryFunc should have comment or be unexported (golint)
    • Line 119: warning: exported type Config should have comment or be unexported (golint)
    • Line 151: warning: exported var DefaultConfig should have comment or be unexported (golint)
    • Line 188: warning: exported type RetryPolicy should have comment or be unexported (golint)
    • Line 197: warning: exported type ActionHandler should have comment or be unexported (golint)
    • Line 198: warning: exported type EventHandler should have comment or be unexported (golint)
    • Line 199: warning: exported type CreatedFunc should have comment or be unexported (golint)
    • Line 200: warning: exported type LifecycleFunc should have comment or be unexported (golint)
    • Line 202: warning: exported type LoggerFunc should have comment or be unexported (golint)
    • Line 203: warning: exported type BusFunc should have comment or be unexported (golint)
    • Line 205: warning: exported type LocalNodeFunc should have comment or be unexported (golint)
    • Line 206: warning: exported type ActionDelegateFunc should have comment or be unexported (golint)
    • Line 207: warning: exported type EmitEventFunc should have comment or be unexported (golint)
    • Line 208: warning: exported type ServiceForActionFunc should have comment or be unexported (golint)
    • Line 209: warning: exported type MultActionDelegateFunc should have comment or be unexported (golint)
    • Line 210: warning: exported type BrokerContextFunc should have comment or be unexported (golint)
    • Line 211: warning: exported type MiddlewareHandlerFunc should have comment or be unexported (golint)
    • Line 212: warning: exported type PublishFunc should have comment or be unexported (golint)
    • Line 213: warning: exported type WaitForFunc should have comment or be unexported (golint)
    • Line 214: warning: exported type MiddlewareHandler should have comment or be unexported (golint)
    • Line 216: warning: exported type Middlewares should have comment or be unexported (golint)
    • Line 218: warning: exported type Middleware should have comment or be unexported (golint)
    • Line 221: warning: exported type Node should have comment or be unexported (golint)
    • Line 235: warning: exported type Options should have comment or be unexported (golint)
    • Line 240: warning: exported type Context should have comment or be unexported (golint)
    • Line 252: warning: exported type BrokerContext should have comment or be unexported (golint)
    • Line 281: warning: comment on exported type BrokerDelegates should be of the form "BrokerDelegates ..." (with optional leading article) (golint)
    • moleculer/registry/registry.go
    • Line 26: warning: exported type ServiceRegistry should have comment or be unexported (golint)
    • Line 61: warning: exported function CreateRegistry should have comment or be unexported (golint)
    • Line 99: warning: exported method ServiceRegistry.KnowService should have comment or be unexported (golint)
    • Line 103: warning: exported method ServiceRegistry.KnowAction should have comment or be unexported (golint)
    • Line 107: warning: exported method ServiceRegistry.KnowNode should have comment or be unexported (golint)
    • Line 112: warning: exported method ServiceRegistry.LocalNode should have comment or be unexported (golint)
    • Line 134: warning: exported method ServiceRegistry.Stop should have comment or be unexported (golint)
    • Line 146: warning: exported method ServiceRegistry.LocalServices should have comment or be unexported (golint)
    • Line 173: warning: exported method ServiceRegistry.ServiceForAction should have comment or be unexported (golint)
    • Line 232: warning: exported method ServiceRegistry.BroadcastEvent should have comment or be unexported (golint)
    • Line 256: warning: comment on exported method ServiceRegistry.LoadBalanceCall should be of the form "LoadBalanceCall ..." (golint)
    • Line 556: warning: exported method ServiceRegistry.KnownEventListeners should have comment or be unexported (golint)
    • Line 571: warning: exported method ServiceRegistry.KnownNodes should have comment or be unexported (golint)
    • moleculer/transit/pubsub/pubsub.go
    • Line 69: warning: exported function Create should have comment or be unexported (golint)
    • Line 274: warning: exported method PubSub.SendHeartbeat should have comment or be unexported (golint)
    • Line 288: warning: exported method PubSub.DiscoverNode should have comment or be unexported (golint)
    • Line 316: warning: exported method PubSub.Request should have comment or be unexported (golint)
    • Line 373: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 481: warning: exported type ActionError should have comment or be unexported (golint)
    • Line 560: warning: exported method PubSub.SendPing should have comment or be unexported (golint)
    • Line 668: warning: exported method PubSub.Ready should have comment or be unexported (golint)
    • moleculer/registry/node.go
    • Line 16: warning: exported type Node should have comment or be unexported (golint)
    • Line 60: warning: exported function CreateNode should have comment or be unexported (golint)
    • Line 82: warning: exported method Node.Update should have comment or be unexported (golint)
    • Line 160: warning: exported method Node.GetID should have comment or be unexported (golint)
    • Line 163: warning: exported method Node.IsExpired should have comment or be unexported (golint)
    • Line 171: warning: exported method Node.HeartBeat should have comment or be unexported (golint)
    • Line 181: warning: exported method Node.Publish should have comment or be unexported (golint)
    • Line 185: warning: exported method Node.IsAvailable should have comment or be unexported (golint)
    • Line 194: warning: comment on exported method Node.Available should be of the form "Available ..." (golint)
    • Line 199: warning: exported method Node.IsLocal should have comment or be unexported (golint)
    • Line 203: warning: exported method Node.IncreaseSequence should have comment or be unexported (golint)
    • moleculer/registry/nodeCatalog.go
    • Line 62: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 72: warning: comment on exported method NodeCatalog.Add should be of the form "Add ..." (golint)
    • moleculer/test/broker_mock.go
    • Line 11: warning: exported function Logger should have comment or be unexported (golint)
    • Line 15: warning: exported function DelegatesWithId should have comment or be unexported (golint)
    • Line 19: warning: exported function DelegatesWithIdAndConfig should have comment or be unexported (golint)
    • moleculer/transit/nats/nats.go
    • Line 16: warning: exported type NatsTransporter should have comment or be unexported (golint)
    • Line 25: warning: exported type NATSOptions should have comment or be unexported (golint)
    • Line 51: warning: exported function CreateNatsTransporter should have comment or be unexported (golint)
    • Line 60: warning: exported method NatsTransporter.Connect should have comment or be unexported (golint)
    • Line 78: warning: exported method NatsTransporter.Disconnect should have comment or be unexported (golint)
    • Line 105: warning: exported method NatsTransporter.Subscribe should have comment or be unexported (golint)
    • Line 126: warning: exported method NatsTransporter.Publish should have comment or be unexported (golint)
    • Line 143: warning: exported method NatsTransporter.SetPrefix should have comment or be unexported (golint)
    • Line 147: warning: exported method NatsTransporter.SetNodeID should have comment or be unexported (golint)
    • Line 150: warning: exported method NatsTransporter.SetSerializer should have comment or be unexported (golint)
    • moleculer/payload/payload.go
    • Line 22: warning: exported method RawPayload.Exists should have comment or be unexported (golint)
    • Line 26: warning: exported method RawPayload.IsError should have comment or be unexported (golint)
    • Line 39: warning: exported method RawPayload.Int should have comment or be unexported (golint)
    • Line 49: warning: exported method RawPayload.Int64 should have comment or be unexported (golint)
    • Line 59: warning: exported method RawPayload.Bool should have comment or be unexported (golint)
    • Line 67: warning: exported method RawPayload.Uint should have comment or be unexported (golint)
    • Line 77: warning: exported method RawPayload.Time should have comment or be unexported (golint)
    • Line 81: warning: exported method RawPayload.StringArray should have comment or be unexported (golint)
    • Line 92: warning: exported method RawPayload.MapArray should have comment or be unexported (golint)
    • Line 103: warning: exported method RawPayload.ValueArray should have comment or be unexported (golint)
    • Line 114: warning: exported method RawPayload.IntArray should have comment or be unexported (golint)
    • Line 125: warning: exported method RawPayload.Int64Array should have comment or be unexported (golint)
    • Line 136: warning: exported method RawPayload.UintArray should have comment or be unexported (golint)
    • Line 147: warning: exported method RawPayload.Float32Array should have comment or be unexported (golint)
    • Line 158: warning: exported method RawPayload.FloatArray should have comment or be unexported (golint)
    • Line 169: warning: exported method RawPayload.BoolArray should have comment or be unexported (golint)
    • Line 184: warning: exported method RawPayload.ByteArray should have comment or be unexported (golint)
    • Line 192: warning: exported method RawPayload.TimeArray should have comment or be unexported (golint)
    • Line 203: warning: exported method RawPayload.Len should have comment or be unexported (golint)
    • Line 213: warning: exported method RawPayload.First should have comment or be unexported (golint)
    • Line 231: warning: exported method RawPayload.Array should have comment or be unexported (golint)
    • Line 243: warning: exported method RawPayload.MapOver should have comment or be unexported (golint)
    • Line 250: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 255: warning: exported method RawPayload.ForEach should have comment or be unexported (golint)
    • Line 275: warning: exported method RawPayload.IsArray should have comment or be unexported (golint)
    • Line 280: warning: exported method RawPayload.IsMap should have comment or be unexported (golint)
    • Line 285: warning: exported method RawPayload.Float should have comment or be unexported (golint)
    • Line 295: warning: exported method RawPayload.Float32 should have comment or be unexported (golint)
    • Line 347: warning: exported type Stringer should have comment or be unexported (golint)
    • Line 382: warning: exported method RawPayload.Map should have comment or be unexported (golint)
    • Line 395: warning: exported method RawPayload.RawMap should have comment or be unexported (golint)
    • Line 402: warning: comment on exported method RawPayload.Bson should be of the form "Bson ..." (golint)
    • Line 425: warning: exported method RawPayload.BsonArray should have comment or be unexported (golint)
    • Line 472: warning: exported method RawPayload.Get should have comment or be unexported (golint)
    • Line 532: warning: exported method RawPayload.Value should have comment or be unexported (golint)
    • Line 545: warning: exported type Sortable should have comment or be unexported (golint)
    • Line 570: warning: exported method Sortable.Payload should have comment or be unexported (golint)
    • Line 574: warning: exported method RawPayload.Sort should have comment or be unexported (golint)
    • Line 583: warning: exported method RawPayload.Remove should have comment or be unexported (golint)
    • Line 604: warning: exported method RawPayload.AddItem should have comment or be unexported (golint)
    • Line 635: warning: exported function Error should have comment or be unexported (golint)
    • Line 648: warning: exported function PayloadError should have comment or be unexported (golint)
    • Line 652: warning: exported method RawPayload.ErrorPayload should have comment or be unexported (golint)
    • Line 660: warning: exported function EmptyList should have comment or be unexported (golint)
    • Line 664: warning: exported function Empty should have comment or be unexported (golint)
    • Line 668: warning: exported function New should have comment or be unexported (golint)
    • moleculer/service/service.go
    • Line 14: warning: exported type Action should have comment or be unexported (golint)
    • Line 21: warning: exported type Event should have comment or be unexported (golint)
    • Line 28: warning: exported method Event.Handler should have comment or be unexported (golint)
    • Line 32: warning: exported method Event.Name should have comment or be unexported (golint)
    • Line 36: warning: exported method Event.ServiceName should have comment or be unexported (golint)
    • Line 40: warning: exported method Event.Group should have comment or be unexported (golint)
    • Line 44: warning: exported type HasName should have comment or be unexported (golint)
    • Line 48: warning: exported type HasVersion should have comment or be unexported (golint)
    • Line 52: warning: exported type HasDependencies should have comment or be unexported (golint)
    • Line 56: warning: exported type HasSettings should have comment or be unexported (golint)
    • Line 60: warning: exported type HasMetadata should have comment or be unexported (golint)
    • Line 64: warning: exported type HasMixins should have comment or be unexported (golint)
    • Line 68: warning: exported type HasEvents should have comment or be unexported (golint)
    • Line 72: warning: exported function ParseVersion should have comment or be unexported (golint)
    • Line 92: warning: exported type Service should have comment or be unexported (golint)
    • Line 109: warning: exported method Service.Schema should have comment or be unexported (golint)
    • Line 113: warning: exported method Service.NodeID should have comment or be unexported (golint)
    • Line 117: warning: exported method Service.Settings should have comment or be unexported (golint)
    • Line 121: warning: exported method Service.SetNodeID should have comment or be unexported (golint)
    • Line 125: warning: exported method Service.Dependencies should have comment or be unexported (golint)
    • Line 129: warning: exported method Action.Handler should have comment or be unexported (golint)
    • Line 133: warning: exported method Action.Name should have comment or be unexported (golint)
    • Line 137: warning: exported method Action.FullName should have comment or be unexported (golint)
    • Line 141: warning: exported method Service.Name should have comment or be unexported (golint)
    • Line 145: warning: exported method Service.FullName should have comment or be unexported (golint)
    • Line 149: warning: exported method Service.Version should have comment or be unexported (golint)
    • Line 153: warning: exported method Service.Actions should have comment or be unexported (golint)
    • Line 157: warning: exported method Service.Summary should have comment or be unexported (golint)
    • Line 165: warning: exported method Service.Events should have comment or be unexported (golint)
    • Line 213: warning: exported function MergeSettings should have comment or be unexported (golint)
    • Line 327: warning: exported function JoinVersionToName should have comment or be unexported (golint)
    • Line 334: warning: exported function CreateServiceEvent should have comment or be unexported (golint)
    • Line 343: warning: exported function CreateServiceAction should have comment or be unexported (golint)
    • Line 416: warning: exported method Service.AddActionMap should have comment or be unexported (golint)
    • Line 427: warning: exported method Service.RemoveEvent should have comment or be unexported (golint)
    • Line 437: warning: exported method Service.RemoveAction should have comment or be unexported (golint)
    • Line 447: warning: exported method Service.AddEventMap should have comment or be unexported (golint)
    • Line 748: warning: exported type HasCreated should have comment or be unexported (golint)
    • Line 751: warning: exported type HasCreatedNoParams should have comment or be unexported (golint)
    • Line 755: warning: exported type HasStarted should have comment or be unexported (golint)
    • Line 758: warning: exported type HasStartedNoParams should have comment or be unexported (golint)
    • Line 762: warning: exported type HasStopped should have comment or be unexported (golint)
    • Line 765: warning: exported type HasStoppedNoParams should have comment or be unexported (golint)
    • Line 869: warning: exported function FromSchema should have comment or be unexported (golint)
    • Line 885: warning: exported function CreateServiceFromMap should have comment or be unexported (golint)
    • moleculer/registry/serviceCatalog.go
    • Line 11: warning: exported type ServiceCatalog should have comment or be unexported (golint)
    • Line 17: warning: exported type ServiceEntry should have comment or be unexported (golint)
    • Line 22: warning: exported function CreateServiceCatalog should have comment or be unexported (golint)
    • Line 33: warning: comment on exported method ServiceCatalog.Find should be of the form "Find ..." (golint)
    • Line 40: warning: exported method ServiceCatalog.FindByName 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!


misspell88%

Misspell Finds commonly misspelled English words