Preparing report...

Report for github.com/qa-dev/universe

A    Great!    Found 19 issues across 26 files

Tweet

gofmt92%

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!


gocyclo100%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.

No problems detected. Good job!


golint34%

Golint is a linter for Go source code.

    • universe/subscribe/service.go
    • Line 10: warning: exported type SubscribeService should have comment or be unexported (golint)
    • Line 14: warning: exported function NewSubscribeService should have comment or be unexported (golint)
    • Line 18: warning: exported method SubscribeService.ProcessSubscribe should have comment or be unexported (golint)
    • Line 28: warning: exported method SubscribeService.ProcessUnsubscribe should have comment or be unexported (golint)
    • universe/plugins/log/log.go
    • Line 9: warning: exported type Log should have comment or be unexported (golint)
    • Line 13: warning: exported function NewLog should have comment or be unexported (golint)
    • Line 17: warning: exported method Log.GetPluginInfo should have comment or be unexported (golint)
    • Line 24: warning: exported method Log.ProcessEvent should have comment or be unexported (golint)
    • Line 28: warning: exported method Log.Subscribe should have comment or be unexported (golint)
    • Line 33: warning: exported method Log.Unsubscribe should have comment or be unexported (golint)
    • Line 38: warning: exported method Log.LoadSubscriber should have comment or be unexported (golint)
    • Line 42: warning: exported method Log.Loaded should have comment or be unexported (golint)
    • universe/plugins/storage.go
    • Line 10: warning: exported type PluginStorage should have comment or be unexported (golint)
    • Line 14: warning: exported function NewPluginStorage should have comment or be unexported (golint)
    • Line 18: warning: exported method PluginStorage.Register should have comment or be unexported (golint)
    • Line 22: warning: exported method PluginStorage.ProcessEvent should have comment or be unexported (golint)
    • Line 28: warning: exported method PluginStorage.ProcessSubscribe should have comment or be unexported (golint)
    • Line 38: warning: exported method PluginStorage.ProcessUnsubscribe should have comment or be unexported (golint)
    • Line 48: warning: exported method PluginStorage.GetPlugins should have comment or be unexported (golint)
    • universe/config/config.go
    • Line 3: warning: exported type App should have comment or be unexported (golint)
    • Line 8: warning: exported type Rmq should have comment or be unexported (golint)
    • Line 13: warning: exported type Mongo should have comment or be unexported (golint)
    • Line 18: warning: exported type Config should have comment or be unexported (golint)
    • universe/plugins/web/plugin.go
    • Line 17: warning: exported const PluginTag should have comment or be unexported (golint)
    • Line 19: warning: exported type PluginWeb should have comment or be unexported (golint)
    • Line 24: warning: exported type HttpRequester should have comment or be unexported (golint)
    • Line 28: warning: exported function NewPluginWeb should have comment or be unexported (golint)
    • Line 35: warning: exported method PluginWeb.GetPluginInfo should have comment or be unexported (golint)
    • Line 42: warning: exported method PluginWeb.Subscribe should have comment or be unexported (golint)
    • Line 53: warning: exported method PluginWeb.Unsubscribe should have comment or be unexported (golint)
    • Line 64: warning: exported method PluginWeb.ProcessEvent should have comment or be unexported (golint)
    • Line 83: warning: exported method PluginWeb.Loaded should have comment or be unexported (golint)
    • universe/keeper/keeper.go
    • Line 11: warning: exported const SubscribersDatabase should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: exported type Keeper should have comment or be unexported (golint)
    • Line 22: warning: exported function NewKeeper should have comment or be unexported (golint)
    • Line 26: warning: exported method Keeper.SetCustomDatabaseName should have comment or be unexported (golint)
    • Line 30: warning: exported method Keeper.StoreSubscriber should have comment or be unexported (golint)
    • Line 37: warning: exported method Keeper.RemoveSubscriber should have comment or be unexported (golint)
    • Line 44: warning: exported method Keeper.GetSubscribers should have comment or be unexported (golint)
    • universe/event/service.go
    • Line 10: warning: exported type EventService should have comment or be unexported (golint)
    • Line 14: warning: exported function NewEventService should have comment or be unexported (golint)
    • Line 18: warning: exported method EventService.Publish should have comment or be unexported (golint)
    • universe/handlers/subscribe.go
    • Line 12: warning: exported type SubscribeHandler should have comment or be unexported (golint)
    • Line 16: warning: exported function NewSubscribeHandler should have comment or be unexported (golint)
    • universe/handlers/unsubscribe.go
    • Line 12: warning: exported type UnsubscribeHandler should have comment or be unexported (golint)
    • Line 16: warning: exported function NewUnsubscribeHandler should have comment or be unexported (golint)
    • universe/rabbitmq/rabbitmq.go
    • Line 13: warning: exported const QueueMaxPriority should have comment or be unexported (golint)
    • Line 15: warning: exported type RabbitMQ should have comment or be unexported (golint)
    • Line 27: warning: exported function NewRabbitMQ should have comment or be unexported (golint)
    • Line 45: warning: exported method RabbitMQ.Close should have comment or be unexported (golint)
    • Line 100: warning: exported method RabbitMQ.NotifyReconnect should have comment or be unexported (golint)
    • Line 117: warning: exported method RabbitMQ.DeclareQueue should have comment or be unexported (golint)
    • Line 134: warning: exported method RabbitMQ.IsOnline should have comment or be unexported (golint)
    • Line 138: warning: exported method RabbitMQ.Publish should have comment or be unexported (golint)
    • Line 174: warning: comment on exported method RabbitMQ.GetConsumer should be of the form "GetConsumer ..." (golint)
    • universe/handlers/event.go
    • Line 12: warning: exported type EventHandler should have comment or be unexported (golint)
    • Line 16: warning: exported type EventPublisher should have comment or be unexported (golint)
    • Line 20: warning: exported function NewEventHandler should have comment or be unexported (golint)
    • universe/dispatcher/dispatcher.go
    • Line 14: warning: exported type ClientInterface should have comment or be unexported (golint)
    • Line 18: warning: exported type Dispatcher should have comment or be unexported (golint)
    • Line 23: warning: exported function NewDispatcher should have comment or be unexported (golint)
    • Line 27: warning: exported method Dispatcher.Run should have comment or be unexported (golint)
    • universe/plugins/plugin.go
    • Line 7: warning: exported type Plugin should have comment or be unexported (golint)
    • Line 15: warning: exported type PluginInfo should have comment or be unexported (golint)
    • universe/rabbitmq/delivery.go
    • Line 7: warning: exported type DeliveryManager should have comment or be unexported (golint)
    • Line 12: warning: exported type Delivery should have comment or be unexported (golint)
    • Line 33: warning: exported method Delivery.Ack should have comment or be unexported (golint)
    • Line 37: warning: exported method Delivery.Reject should have comment or be unexported (golint)
    • Line 41: warning: exported method Delivery.Body should have comment or be unexported (golint)
    • Line 45: warning: exported method Delivery.Priority should have comment or be unexported (golint)
    • universe/plugins/web/data.go
    • Line 3: warning: exported type SubscribeData should have comment or be unexported (golint)
    • Line 8: warning: exported type UnsubscribeData should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


misspell92%

Misspell Finds commonly misspelled English words