Preparing report...

Report for github.com/DuC-cnZj/event-bus

A    Great!    Found 37 issues across 39 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!


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.


golint10%

Golint is a linter for Go source code.

    • event-bus/schedule/schedule.go
    • Line 14: warning: exported type Interface should have comment or be unexported (golint)
    • Line 21: warning: exported type CronJob should have comment or be unexported (golint)
    • Line 34: warning: exported type Schedule should have comment or be unexported (golint)
    • Line 40: warning: exported function NewSchedule should have comment or be unexported (golint)
    • Line 50: warning: exported method Schedule.Run should have comment or be unexported (golint)
    • Line 63: warning: exported method Schedule.Stop should have comment or be unexported (golint)
    • event-bus/lb/lb.go
    • Line 9: warning: exported type LoadBalancerInterface should have comment or be unexported (golint)
    • Line 17: warning: exported type Item should have comment or be unexported (golint)
    • Line 22: warning: exported method Item.Instance should have comment or be unexported (golint)
    • Line 26: warning: exported type LoadBalancer should have comment or be unexported (golint)
    • Line 35: warning: exported method LoadBalancer.Range should have comment or be unexported (golint)
    • Line 44: warning: exported method LoadBalancer.Count should have comment or be unexported (golint)
    • Line 48: warning: exported method LoadBalancer.RemoveAll should have comment or be unexported (golint)
    • Line 68: warning: exported function NewLoadBalancer should have comment or be unexported (golint)
    • Line 83: warning: exported method LoadBalancer.Get should have comment or be unexported (golint)
    • Line 125: warning: exported method LoadBalancer.Remove should have comment or be unexported (golint)
    • event-bus/hub/backgroundjobs.go
    • Line 14: warning: exported type BackgroundJobWorker should have comment or be unexported (golint)
    • Line 30: warning: exported method Hub.Run should have comment or be unexported (golint)
    • Line 36: warning: comment on exported method Hub.GetDelayPublishProducer should be of the form "GetDelayPublishProducer ..." (golint)
    • Line 49: warning: exported method Hub.GetDelayPublishConsumer should have comment or be unexported (golint)
    • Line 61: warning: exported method Hub.ConsumeDelayPublishQueue should have comment or be unexported (golint)
    • Line 123: warning: comment on exported method Hub.GetConfirmProducer should be of the form "GetConfirmProducer ..." (golint)
    • Line 136: warning: exported method Hub.GetConfirmConsumer should have comment or be unexported (golint)
    • Line 148: warning: exported method Hub.ConsumeConfirmQueue should have comment or be unexported (golint)
    • Line 288: warning: comment on exported method Hub.GetAckQueueConsumer should be of the form "GetAckQueueConsumer ..." (golint)
    • Line 301: warning: exported method Hub.GetAckQueueProducer should have comment or be unexported (golint)
    • Line 313: warning: exported method Hub.ConsumeAckQueue should have comment or be unexported (golint)
    • event-bus/hub/rebalancer.go
    • Line 13: warning: exported var RecheckExchange should have comment or be unexported (golint)
    • Line 15: warning: exported type RecheckMessage should have comment or be unexported (golint)
    • Line 23: warning: exported type Rebalancer should have comment or be unexported (golint)
    • Line 28: warning: exported function NewRebalancer should have comment or be unexported (golint)
    • Line 36: warning: exported method Rebalancer.ReBalance should have comment or be unexported (golint)
    • Line 67: warning: exported method Rebalancer.ListenQueue should have comment or be unexported (golint)
    • event-bus/bootstrapers/db.go
    • Line 15: warning: exported type DBLoader should have comment or be unexported (golint)
    • Line 18: warning: exported method DBLoader.Boot should have comment or be unexported (golint)
    • event-bus/hub/direct.go
    • Line 22: warning: exported type DirectProducer should have comment or be unexported (golint)
    • Line 43: warning: exported method DirectProducer.WithConsumerAck should have comment or be unexported (golint)
    • Line 47: warning: exported method DirectProducer.WithConsumerReBalance should have comment or be unexported (golint)
    • Line 51: warning: exported method DirectProducer.WithExchangeDurable should have comment or be unexported (golint)
    • Line 55: warning: exported method DirectProducer.WithExchangeAutoDelete should have comment or be unexported (golint)
    • Line 59: warning: exported method DirectProducer.WithQueueAutoDelete should have comment or be unexported (golint)
    • Line 63: warning: exported method DirectProducer.WithQueueDurable should have comment or be unexported (golint)
    • Line 67: warning: exported method DirectProducer.GetId should have comment or be unexported (golint)
    • Line 71: warning: exported method DirectProducer.DelayPublish should have comment or be unexported (golint)
    • Line 87: warning: exported method DirectProducer.Publish should have comment or be unexported (golint)
    • Line 127: warning: exported method DirectProducer.ChannelDone should have comment or be unexported (golint)
    • Line 131: warning: exported method DirectProducer.GetConn should have comment or be unexported (golint)
    • Line 135: warning: exported method DirectProducer.GetChannel should have comment or be unexported (golint)
    • Line 139: warning: exported method DirectProducer.GetQueueName should have comment or be unexported (golint)
    • Line 143: warning: exported method DirectProducer.GetKind should have comment or be unexported (golint)
    • Line 147: warning: exported method DirectProducer.GetExchange should have comment or be unexported (golint)
    • Line 151: warning: exported method DirectProducer.GetRoutingKey should have comment or be unexported (golint)
    • Line 155: warning: exported method DirectProducer.PrepareConn should have comment or be unexported (golint)
    • Line 172: warning: exported method DirectProducer.PrepareChannel should have comment or be unexported (golint)
    • Line 186: warning: exported method DirectProducer.PrepareExchange should have comment or be unexported (golint)
    • Line 206: warning: exported method DirectProducer.PrepareQueueDeclare should have comment or be unexported (golint)
    • Line 233: warning: exported method DirectProducer.PrepareQueueBind should have comment or be unexported (golint)
    • Line 243: warning: exported method DirectProducer.Build should have comment or be unexported (golint)
    • Line 293: warning: exported method DirectProducer.Close should have comment or be unexported (golint)
    • Line 311: warning: exported method DirectProducer.RemoveSelf should have comment or be unexported (golint)
    • Line 315: warning: exported type DirectConsumer should have comment or be unexported (golint)
    • Line 336: warning: exported method DirectConsumer.WithConsumerAck should have comment or be unexported (golint)
    • Line 340: warning: exported method DirectConsumer.WithConsumerReBalance should have comment or be unexported (golint)
    • Line 344: warning: exported method DirectConsumer.WithExchangeDurable should have comment or be unexported (golint)
    • Line 348: warning: exported method DirectConsumer.WithExchangeAutoDelete should have comment or be unexported (golint)
    • Line 352: warning: exported method DirectConsumer.WithQueueAutoDelete should have comment or be unexported (golint)
    • Line 356: warning: exported method DirectConsumer.WithQueueDurable should have comment or be unexported (golint)
    • Line 360: warning: exported method DirectConsumer.Consume should have comment or be unexported (golint)
    • Line 420: warning: exported method DirectConsumer.Ack should have comment or be unexported (golint)
    • Line 428: warning: exported method DirectConsumer.Nack should have comment or be unexported (golint)
    • Line 436: warning: exported method DirectConsumer.Delivery should have comment or be unexported (golint)
    • Line 440: warning: exported method DirectConsumer.AutoAck should have comment or be unexported (golint)
    • Line 444: warning: exported method DirectConsumer.GetId should have comment or be unexported (golint)
    • Line 448: warning: exported method DirectConsumer.GetConn should have comment or be unexported (golint)
    • Line 452: warning: exported method DirectConsumer.GetChannel should have comment or be unexported (golint)
    • Line 456: warning: exported method DirectConsumer.GetQueueName should have comment or be unexported (golint)
    • Line 460: warning: exported method DirectConsumer.GetKind should have comment or be unexported (golint)
    • Line 464: warning: exported method DirectConsumer.GetExchange should have comment or be unexported (golint)
    • Line 468: warning: exported method DirectConsumer.GetRoutingKey should have comment or be unexported (golint)
    • Line 472: warning: exported method DirectConsumer.PrepareConn should have comment or be unexported (golint)
    • Line 489: warning: exported method DirectConsumer.PrepareExchange should have comment or be unexported (golint)
    • Line 509: warning: exported method DirectConsumer.PrepareQueueDeclare should have comment or be unexported (golint)
    • Line 531: warning: exported method DirectConsumer.PrepareQueueBind should have comment or be unexported (golint)
    • Line 541: warning: exported method DirectConsumer.PrepareQos should have comment or be unexported (golint)
    • Line 557: warning: exported method DirectConsumer.PrepareDelivery should have comment or be unexported (golint)
    • Line 570: warning: exported method DirectConsumer.PrepareChannel should have comment or be unexported (golint)
    • Line 584: warning: exported method DirectConsumer.ChannelDone should have comment or be unexported (golint)
    • Line 588: warning: exported method DirectConsumer.Build should have comment or be unexported (golint)
    • Line 665: warning: exported method DirectConsumer.Close should have comment or be unexported (golint)
    • Line 685: warning: exported method DirectConsumer.RemoveSelf should have comment or be unexported (golint)
    • Line 689: warning: exported method DirectConsumer.DontNeedReBalance should have comment or be unexported (golint)
    • event-bus/hub/manager.go
    • Line 14: warning: exported type ProducerManagerInterface should have comment or be unexported (golint)
    • Line 25: warning: exported type ProducerManager should have comment or be unexported (golint)
    • Line 31: warning: exported function NewProducerManager should have comment or be unexported (golint)
    • Line 35: warning: exported method ProducerManager.GetProducer should have comment or be unexported (golint)
    • Line 49: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 81: warning: exported method ProducerManager.GetDurableNotAutoDeleteProducer should have comment or be unexported (golint)
    • Line 97: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 128: warning: exported method ProducerManager.RemoveProducer should have comment or be unexported (golint)
    • Line 134: warning: exported method ProducerManager.CloseAll should have comment or be unexported (golint)
    • Line 154: warning: exported method ProducerManager.Count should have comment or be unexported (golint)
    • Line 165: warning: exported method ProducerManager.Print should have comment or be unexported (golint)
    • Line 179: warning: exported type ConsumerManagerInterface should have comment or be unexported (golint)
    • Line 188: warning: exported type ConsumerManager should have comment or be unexported (golint)
    • Line 195: warning: exported function NewConsumerManager should have comment or be unexported (golint)
    • Line 199: warning: exported method ConsumerManager.Delivery should have comment or be unexported (golint)
    • Line 210: warning: exported method ConsumerManager.GetConsumer should have comment or be unexported (golint)
    • Line 224: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 276: warning: exported method ConsumerManager.RemoveConsumer should have comment or be unexported (golint)
    • Line 282: warning: exported method ConsumerManager.CloseAll should have comment or be unexported (golint)
    • Line 302: warning: exported method ConsumerManager.Count should have comment or be unexported (golint)
    • Line 313: warning: exported method ConsumerManager.Print should have comment or be unexported (golint)
    • event-bus/rpc/mq.go
    • Line 13: warning: exported type MQ should have comment or be unexported (golint)
    • Line 17: warning: comment on exported method MQ.Publish should be of the form "Publish ..." (golint)
    • event-bus/rpc/mq_topic.go
    • Line 13: warning: exported type MQTopic should have comment or be unexported (golint)
    • Line 17: warning: comment on exported method MQTopic.Publish should be of the form "Publish ..." (golint)
    • event-bus/bootstrapers/app.go
    • Line 17: warning: exported function App should have comment or be unexported (golint)
    • Line 21: warning: exported type AppInterface should have comment or be unexported (golint)
    • Line 28: warning: exported type Application should have comment or be unexported (golint)
    • Line 36: warning: exported method Application.Booted should have comment or be unexported (golint)
    • Line 40: warning: exported method Application.Boot should have comment or be unexported (golint)
    • Line 48: warning: exported method Application.DB should have comment or be unexported (golint)
    • Line 52: warning: exported method Application.Redis should have comment or be unexported (golint)
    • Line 56: warning: exported method Application.Config should have comment or be unexported (golint)
    • event-bus/adapter/gorm_logger.go
    • Line 11: warning: exported type GormLoggerAdapter should have comment or be unexported (golint)
    • Line 15: warning: exported method GormLoggerAdapter.LogMode should have comment or be unexported (golint)
    • Line 21: warning: exported method GormLoggerAdapter.Info should have comment or be unexported (golint)
    • Line 27: warning: exported method GormLoggerAdapter.Warn should have comment or be unexported (golint)
    • Line 39: warning: exported method GormLoggerAdapter.Trace should have comment or be unexported (golint)
    • event-bus/hub/consumer.go
    • Line 9: warning: exported type MqConfigInterface should have comment or be unexported (golint)
    • Line 20: warning: exported type ConsumerInterface should have comment or be unexported (golint)
    • Line 41: warning: exported type ConsumerBase should have comment or be unexported (golint)
    • Line 70: warning: exported type Option should have comment or be unexported (golint)
    • Line 72: warning: exported function WithConsumerReBalance should have comment or be unexported (golint)
    • Line 78: warning: exported function WithConsumerAck should have comment or be unexported (golint)
    • Line 84: warning: exported function WithExchangeDurable should have comment or be unexported (golint)
    • Line 90: warning: exported function WithExchangeAutoDelete should have comment or be unexported (golint)
    • Line 96: warning: exported function WithQueueAutoDelete should have comment or be unexported (golint)
    • Line 102: warning: exported function WithQueueDurable should have comment or be unexported (golint)
    • event-bus/adapter/cron_logger.go
    • Line 7: warning: exported type CronLoggerAdapter should have comment or be unexported (golint)
    • Line 10: warning: exported method CronLoggerAdapter.Info should have comment or be unexported (golint)
    • event-bus/models/delay_queue.go
    • Line 11: warning: exported type DelayQueue should have comment or be unexported (golint)
    • Line 33: warning: exported method DelayQueue.IsTopicSelfQueue should have comment or be unexported (golint)
    • event-bus/hub/message.go
    • Line 8: warning: exported type MessageInterface should have comment or be unexported (golint)
    • Line 35: warning: exported type ConfirmMessage should have comment or be unexported (golint)
    • Line 47: warning: exported function NewConfirmMessage should have comment or be unexported (golint)
    • Line 51: warning: exported type AckMessage should have comment or be unexported (golint)
    • Line 56: warning: exported function NewAckMessage should have comment or be unexported (golint)
    • Line 60: warning: exported type MetaData should have comment or be unexported (golint)
    • Line 68: warning: exported type Message should have comment or be unexported (golint)
    • Line 82: warning: exported function NewMessage should have comment or be unexported (golint)
    • Line 86: warning: exported method Message.SetMessageExpiration should have comment or be unexported (golint)
    • Line 92: warning: exported method Message.GetMessageExpiration should have comment or be unexported (golint)
    • Line 96: warning: exported method Message.GetMessageExpirationString should have comment or be unexported (golint)
    • Line 104: warning: exported method Message.SetExchange should have comment or be unexported (golint)
    • Line 109: warning: exported method Message.SetRunAfter should have comment or be unexported (golint)
    • Line 114: warning: exported method Message.SetRetryTimes should have comment or be unexported (golint)
    • Line 119: warning: exported method Message.SetQueueName should have comment or be unexported (golint)
    • Line 124: warning: exported method Message.SetKind should have comment or be unexported (golint)
    • Line 129: warning: exported method Message.SetUniqueIdIfNotExist should have comment or be unexported (golint)
    • Line 136: warning: exported method Message.SetUniqueId should have comment or be unexported (golint)
    • Line 141: warning: exported method Message.SetRoutingKey should have comment or be unexported (golint)
    • Line 146: warning: exported method Message.SetRef should have comment or be unexported (golint)
    • Line 151: warning: exported method Message.Delay should have comment or be unexported (golint)
    • Line 157: warning: exported method Message.GetQueueName should have comment or be unexported (golint)
    • Line 160: warning: exported method Message.GetExchange should have comment or be unexported (golint)
    • Line 163: warning: exported method Message.GetKind should have comment or be unexported (golint)
    • Line 166: warning: exported method Message.GetRoutingKey should have comment or be unexported (golint)
    • Line 169: warning: exported method Message.GetUniqueId should have comment or be unexported (golint)
    • Line 172: warning: exported method Message.GetData should have comment or be unexported (golint)
    • Line 175: warning: exported method Message.GetRunAfter should have comment or be unexported (golint)
    • Line 178: warning: exported method Message.GetRef should have comment or be unexported (golint)
    • Line 181: warning: exported method Message.GetRetryTimes should have comment or be unexported (golint)
    • Line 184: warning: exported method Message.GetDelaySeconds should have comment or be unexported (golint)
    • Line 187: warning: exported method Message.IsDelay should have comment or be unexported (golint)
    • event-bus/hub/pubsub.go
    • Line 23: warning: exported type PubProducer should have comment or be unexported (golint)
    • Line 27: warning: exported method PubProducer.DelayPublish should have comment or be unexported (golint)
    • Line 42: warning: exported method PubProducer.WithConsumerAck should have comment or be unexported (golint)
    • Line 46: warning: exported method PubProducer.WithConsumerReBalance should have comment or be unexported (golint)
    • Line 50: warning: exported method PubProducer.WithExchangeDurable should have comment or be unexported (golint)
    • Line 54: warning: exported method PubProducer.WithExchangeAutoDelete should have comment or be unexported (golint)
    • Line 58: warning: exported method PubProducer.WithQueueAutoDelete should have comment or be unexported (golint)
    • Line 62: warning: exported method PubProducer.WithQueueDurable should have comment or be unexported (golint)
    • Line 82: warning: exported method PubProducer.PrepareConn should have comment or be unexported (golint)
    • Line 99: warning: exported method PubProducer.PrepareChannel should have comment or be unexported (golint)
    • Line 113: warning: exported method PubProducer.PrepareExchange should have comment or be unexported (golint)
    • Line 133: warning: exported method PubProducer.PrepareQueueDeclare should have comment or be unexported (golint)
    • Line 137: warning: exported method PubProducer.PrepareQueueBind should have comment or be unexported (golint)
    • Line 141: warning: exported method PubProducer.Build should have comment or be unexported (golint)
    • Line 179: warning: exported method PubProducer.GetId should have comment or be unexported (golint)
    • Line 183: warning: exported method PubProducer.GetConn should have comment or be unexported (golint)
    • Line 187: warning: exported method PubProducer.GetChannel should have comment or be unexported (golint)
    • Line 191: warning: exported method PubProducer.GetQueueName should have comment or be unexported (golint)
    • Line 195: warning: exported method PubProducer.GetKind should have comment or be unexported (golint)
    • Line 199: warning: exported method PubProducer.GetRoutingKey should have comment or be unexported (golint)
    • Line 203: warning: exported method PubProducer.GetExchange should have comment or be unexported (golint)
    • Line 207: warning: exported method PubProducer.Publish should have comment or be unexported (golint)
    • Line 247: warning: exported method PubProducer.RemoveSelf should have comment or be unexported (golint)
    • Line 251: warning: exported method PubProducer.Close should have comment or be unexported (golint)
    • Line 269: warning: exported method PubProducer.ChannelDone should have comment or be unexported (golint)
    • Line 273: warning: exported type SubConsumer should have comment or be unexported (golint)
    • Line 294: warning: exported method SubConsumer.WithConsumerAck should have comment or be unexported (golint)
    • Line 298: warning: exported method SubConsumer.WithConsumerReBalance should have comment or be unexported (golint)
    • Line 302: warning: exported method SubConsumer.WithExchangeDurable should have comment or be unexported (golint)
    • Line 306: warning: exported method SubConsumer.WithExchangeAutoDelete should have comment or be unexported (golint)
    • Line 310: warning: exported method SubConsumer.WithQueueAutoDelete should have comment or be unexported (golint)
    • Line 314: warning: exported method SubConsumer.WithQueueDurable should have comment or be unexported (golint)
    • Line 318: warning: exported method SubConsumer.Ack should have comment or be unexported (golint)
    • Line 322: warning: exported method SubConsumer.Nack should have comment or be unexported (golint)
    • Line 326: warning: exported method SubConsumer.Delivery should have comment or be unexported (golint)
    • Line 330: warning: exported method SubConsumer.AutoAck should have comment or be unexported (golint)
    • Line 334: warning: exported method SubConsumer.GetId should have comment or be unexported (golint)
    • Line 338: warning: exported method SubConsumer.GetConn should have comment or be unexported (golint)
    • Line 342: warning: exported method SubConsumer.GetChannel should have comment or be unexported (golint)
    • Line 346: warning: exported method SubConsumer.GetQueueName should have comment or be unexported (golint)
    • Line 350: warning: exported method SubConsumer.GetKind should have comment or be unexported (golint)
    • Line 354: warning: exported method SubConsumer.GetExchange should have comment or be unexported (golint)
    • Line 358: warning: exported method SubConsumer.GetRoutingKey should have comment or be unexported (golint)
    • Line 362: warning: exported method SubConsumer.Consume should have comment or be unexported (golint)
    • Line 389: warning: exported method SubConsumer.PrepareConn should have comment or be unexported (golint)
    • Line 406: warning: exported method SubConsumer.PrepareExchange should have comment or be unexported (golint)
    • Line 426: warning: exported method SubConsumer.PrepareChannel should have comment or be unexported (golint)
    • Line 440: warning: exported method SubConsumer.PrepareQos should have comment or be unexported (golint)
    • Line 456: warning: exported method SubConsumer.PrepareQueueDeclare should have comment or be unexported (golint)
    • Line 478: warning: exported method SubConsumer.PrepareQueueBind should have comment or be unexported (golint)
    • Line 488: warning: exported method SubConsumer.PrepareDelivery should have comment or be unexported (golint)
    • Line 501: warning: exported method SubConsumer.ChannelDone should have comment or be unexported (golint)
    • Line 505: warning: exported method SubConsumer.Build should have comment or be unexported (golint)
    • Line 582: warning: exported method SubConsumer.Close should have comment or be unexported (golint)
    • Line 602: warning: exported method SubConsumer.RemoveSelf should have comment or be unexported (golint)
    • Line 606: warning: exported method SubConsumer.DontNeedReBalance should have comment or be unexported (golint)
    • event-bus/hub/topic.go
    • Line 23: warning: exported type TopicProducer should have comment or be unexported (golint)
    • Line 27: warning: exported method TopicProducer.DelayPublish should have comment or be unexported (golint)
    • Line 43: warning: exported method TopicProducer.WithConsumerAck should have comment or be unexported (golint)
    • Line 47: warning: exported method TopicProducer.WithConsumerReBalance should have comment or be unexported (golint)
    • Line 51: warning: exported method TopicProducer.WithExchangeDurable should have comment or be unexported (golint)
    • Line 55: warning: exported method TopicProducer.WithExchangeAutoDelete should have comment or be unexported (golint)
    • Line 59: warning: exported method TopicProducer.WithQueueAutoDelete should have comment or be unexported (golint)
    • Line 63: warning: exported method TopicProducer.WithQueueDurable should have comment or be unexported (golint)
    • Line 86: warning: exported method TopicProducer.PrepareConn should have comment or be unexported (golint)
    • Line 103: warning: exported method TopicProducer.PrepareChannel should have comment or be unexported (golint)
    • Line 115: warning: exported method TopicProducer.PrepareExchange should have comment or be unexported (golint)
    • Line 135: warning: exported method TopicProducer.PrepareQueueDeclare should have comment or be unexported (golint)
    • Line 139: warning: exported method TopicProducer.PrepareQueueBind should have comment or be unexported (golint)
    • Line 143: warning: exported method TopicProducer.Build should have comment or be unexported (golint)
    • Line 181: warning: exported method TopicProducer.GetId should have comment or be unexported (golint)
    • Line 185: warning: exported method TopicProducer.GetConn should have comment or be unexported (golint)
    • Line 189: warning: exported method TopicProducer.GetChannel should have comment or be unexported (golint)
    • Line 193: warning: exported method TopicProducer.GetQueueName should have comment or be unexported (golint)
    • Line 197: warning: exported method TopicProducer.GetKind should have comment or be unexported (golint)
    • Line 201: warning: exported method TopicProducer.GetRoutingKey should have comment or be unexported (golint)
    • Line 205: warning: exported method TopicProducer.GetExchange should have comment or be unexported (golint)
    • Line 209: warning: exported method TopicProducer.Publish should have comment or be unexported (golint)
    • Line 249: warning: exported method TopicProducer.RemoveSelf should have comment or be unexported (golint)
    • Line 253: warning: exported method TopicProducer.Close should have comment or be unexported (golint)
    • Line 271: warning: exported method TopicProducer.ChannelDone should have comment or be unexported (golint)
    • Line 275: warning: exported type TopicConsumer should have comment or be unexported (golint)
    • Line 297: warning: exported method TopicConsumer.WithConsumerAck should have comment or be unexported (golint)
    • Line 301: warning: exported method TopicConsumer.WithConsumerReBalance should have comment or be unexported (golint)
    • Line 305: warning: exported method TopicConsumer.WithExchangeDurable should have comment or be unexported (golint)
    • Line 309: warning: exported method TopicConsumer.WithExchangeAutoDelete should have comment or be unexported (golint)
    • Line 313: warning: exported method TopicConsumer.WithQueueAutoDelete should have comment or be unexported (golint)
    • Line 317: warning: exported method TopicConsumer.WithQueueDurable should have comment or be unexported (golint)
    • Line 321: warning: exported method TopicConsumer.Ack should have comment or be unexported (golint)
    • Line 329: warning: exported method TopicConsumer.Nack should have comment or be unexported (golint)
    • Line 337: warning: exported method TopicConsumer.Delivery should have comment or be unexported (golint)
    • Line 341: warning: exported method TopicConsumer.AutoAck should have comment or be unexported (golint)
    • Line 345: warning: exported method TopicConsumer.GetId should have comment or be unexported (golint)
    • Line 349: warning: exported method TopicConsumer.GetConn should have comment or be unexported (golint)
    • Line 353: warning: exported method TopicConsumer.GetChannel should have comment or be unexported (golint)
    • Line 357: warning: exported method TopicConsumer.GetQueueName should have comment or be unexported (golint)
    • Line 361: warning: exported method TopicConsumer.GetKind should have comment or be unexported (golint)
    • Line 365: warning: exported method TopicConsumer.GetExchange should have comment or be unexported (golint)
    • Line 369: warning: exported method TopicConsumer.GetRoutingKey should have comment or be unexported (golint)
    • Line 373: warning: exported method TopicConsumer.Consume should have comment or be unexported (golint)
    • Line 414: warning: exported method TopicConsumer.PrepareConn should have comment or be unexported (golint)
    • Line 431: warning: exported method TopicConsumer.PrepareExchange should have comment or be unexported (golint)
    • Line 451: warning: exported method TopicConsumer.PrepareChannel should have comment or be unexported (golint)
    • Line 465: warning: exported method TopicConsumer.PrepareQos should have comment or be unexported (golint)
    • Line 481: warning: exported method TopicConsumer.PrepareQueueDeclare should have comment or be unexported (golint)
    • Line 503: warning: exported method TopicConsumer.PrepareQueueBind should have comment or be unexported (golint)
    • Line 519: warning: exported method TopicConsumer.PrepareDelivery should have comment or be unexported (golint)
    • Line 532: warning: exported method TopicConsumer.ChannelDone should have comment or be unexported (golint)
    • Line 536: warning: exported method TopicConsumer.Build should have comment or be unexported (golint)
    • Line 613: warning: exported method TopicConsumer.Close should have comment or be unexported (golint)
    • Line 633: warning: exported method TopicConsumer.RemoveSelf should have comment or be unexported (golint)
    • Line 637: warning: exported method TopicConsumer.DontNeedReBalance should have comment or be unexported (golint)
    • Line 641: warning: exported function GetSelfQueueRoutingKey should have comment or be unexported (golint)
    • event-bus/cmd/serve.go
    • Line 9: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 206: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • event-bus/conn/conn.go
    • Line 14: warning: exported function NewConn should have comment or be unexported (golint)
    • Line 24: warning: exported function ReConnect should have comment or be unexported (golint)
    • event-bus/bootstrapers/redis.go
    • Line 5: warning: exported type RedisLoader should have comment or be unexported (golint)
    • Line 8: warning: exported method RedisLoader.Boot should have comment or be unexported (golint)
    • event-bus/models/queue.go
    • Line 11: warning: exported type Status should have comment or be unexported (golint)
    • Line 14: warning: exported const StatusUnknown should have comment (or a comment on this block) or be unexported (golint)
    • Line 19: warning: exported type Queue should have comment or be unexported (golint)
    • Line 47: warning: exported method Queue.Acked should have comment or be unexported (golint)
    • Line 50: warning: exported method Queue.Deleted should have comment or be unexported (golint)
    • Line 54: warning: exported method Queue.Nackd should have comment or be unexported (golint)
    • Line 58: warning: exported method Queue.Confirmed should have comment or be unexported (golint)
    • Line 62: warning: exported method Queue.IsTopicSelfQueue should have comment or be unexported (golint)
    • event-bus/hub/producer.go
    • Line 7: warning: exported type ProducerInterface should have comment or be unexported (golint)
    • Line 22: warning: exported type ProducerBase should have comment or be unexported (golint)
    • event-bus/cmd/consume.go
    • Line 62: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • event-bus/hub/builder.go
    • Line 3: warning: exported type Prepareable should have comment or be unexported (golint)
    • Line 11: warning: exported type ProducerBuilder should have comment or be unexported (golint)
    • Line 16: warning: exported type ConsumerBuilder should have comment or be unexported (golint)
    • event-bus/hub/hub.go
    • Line 28: warning: exported type Interface should have comment or be unexported (golint)
    • Line 71: warning: exported type Hub should have comment or be unexported (golint)
    • Line 89: warning: exported function NewHub should have comment or be unexported (golint)
    • Line 108: warning: exported method Hub.NewDurableNotAutoDeleteTopicProducer should have comment or be unexported (golint)
    • Line 125: warning: exported method Hub.NewDurableNotAutoDeletePubsubProducer should have comment or be unexported (golint)
    • Line 144: warning: exported method Hub.NewDurableNotAutoDeletePubsubConsumer should have comment or be unexported (golint)
    • Line 161: warning: exported method Hub.NewDurableNotAutoDeleteTopicConsumer should have comment or be unexported (golint)
    • Line 178: warning: exported method Hub.NewProducer should have comment or be unexported (golint)
    • Line 203: warning: exported method Hub.ReBalance should have comment or be unexported (golint)
    • Line 208: warning: exported method Hub.Ack should have comment or be unexported (golint)
    • Line 230: warning: exported method Hub.Nack should have comment or be unexported (golint)
    • Line 273: warning: exported method Hub.GetDBConn should have comment or be unexported (golint)
    • Line 277: warning: exported method Hub.ProducerManager should have comment or be unexported (golint)
    • Line 281: warning: exported method Hub.ConsumerManager should have comment or be unexported (golint)
    • Line 285: warning: exported method Hub.NewDurableNotAutoDeleteDirectProducer should have comment or be unexported (golint)
    • Line 304: warning: exported method Hub.NewConsumer should have comment or be unexported (golint)
    • Line 330: warning: exported method Hub.NewDurableNotAutoDeleteDirectConsumer should have comment or be unexported (golint)
    • Line 347: warning: exported method Hub.RemoveProducer should have comment or be unexported (golint)
    • Line 351: warning: exported method Hub.RemoveConsumer should have comment or be unexported (golint)
    • Line 355: warning: exported method Hub.CloseAllConsumer should have comment or be unexported (golint)
    • Line 359: warning: exported method Hub.CloseAllProducer should have comment or be unexported (golint)
    • Line 363: warning: exported method Hub.Done should have comment or be unexported (golint)
    • Line 367: warning: exported method Hub.GetAmqpConn should have comment or be unexported (golint)
    • Line 375: warning: exported method Hub.IsClosed should have comment or be unexported (golint)
    • Line 379: warning: exported method Hub.Close should have comment or be unexported (golint)
    • Line 421: warning: exported method Hub.Config should have comment or be unexported (golint)
    • Line 425: warning: exported method Hub.DelayPublishQueue should have comment or be unexported (golint)
    • event-bus/hub/variables.go
    • Line 10: warning: exported var ErrorServerUnavailable should have comment or be unexported (golint)
    • Line 11: warning: exported var ErrorAmqpConnClosed should have comment or be unexported (golint)
    • Line 12: warning: exported var ErrorAlreadyAcked should have comment or be unexported (golint)
    • Line 13: warning: exported var ErrorHubDone should have comment or be unexported (golint)
    • Line 15: warning: exported var DefaultExchange should have comment or be unexported (golint)
    • Line 16: warning: exported var AckQueueName should have comment or be unexported (golint)
    • Line 17: warning: exported var ConfirmQueueName should have comment or be unexported (golint)
    • Line 18: warning: exported var DelayQueueName should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign87%

IneffAssign detects ineffectual assignments in Go code.

    • event-bus/rpc/mq.go
    • Line 8: warning: no required module provides package github.com/DuC-cnZj/event-bus/protos; to add it: (ineffassign)
    • Line 8: warning: could not import github.com/DuC-cnZj/event-bus/protos (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/DuC-cnZj/event-bus/protos (invalid package name: "") (ineffassign)
    • event-bus/cmd/rpcPub.go
    • Line 15: warning: no required module provides package github.com/DuC-cnZj/event-bus/protos; to add it: (ineffassign)
    • Line 15: warning: could not import github.com/DuC-cnZj/event-bus/protos (invalid package name: "") (ineffassign)
    • Line 15: warning: no required module provides package github.com/DuC-cnZj/event-bus/protos; to add it: (ineffassign)
    • Line 15: warning: could not import github.com/DuC-cnZj/event-bus/protos (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!