Preparing report...

Report for github.com/NeowayLabs/wabbit

A+    Excellent!    Found 20 issues across 34 files

Tweet

gofmt97%

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!


golint55%

Golint is a linter for Go source code.

    • wabbit/amqptest/queue.go
    • Line 3: warning: exported type Queue should have comment or be unexported (golint)
    • Line 9: warning: exported function NewQueue should have comment or be unexported (golint)
    • Line 15: warning: exported method Queue.Name should have comment or be unexported (golint)
    • Line 19: warning: exported method Queue.Messages should have comment or be unexported (golint)
    • Line 23: warning: exported method Queue.Consumers should have comment or be unexported (golint)
    • wabbit/amqptest/server/confirmation.go
    • Line 3: warning: exported type Confirmation should have comment or be unexported (golint)
    • Line 8: warning: exported method Confirmation.Ack should have comment or be unexported (golint)
    • Line 12: warning: exported method Confirmation.DeliveryTag should have comment or be unexported (golint)
    • wabbit/amqptest/server/delivery.go
    • Line 18: warning: exported function NewDelivery should have comment or be unexported (golint)
    • Line 28: warning: exported method Delivery.Ack should have comment or be unexported (golint)
    • Line 32: warning: exported method Delivery.Nack should have comment or be unexported (golint)
    • Line 36: warning: exported method Delivery.Reject should have comment or be unexported (golint)
    • Line 40: warning: exported method Delivery.Body should have comment or be unexported (golint)
    • Line 44: warning: exported method Delivery.Headers should have comment or be unexported (golint)
    • Line 48: warning: exported method Delivery.DeliveryTag should have comment or be unexported (golint)
    • Line 52: warning: exported method Delivery.ConsumerTag should have comment or be unexported (golint)
    • Line 56: warning: exported method Delivery.MessageId should have comment or be unexported (golint)
    • wabbit/amqptest/server/queue.go
    • Line 6: warning: exported const QueueMaxLen should have comment (or a comment on this block) or be unexported (golint)
    • Line 9: warning: exported type Queue should have comment or be unexported (golint)
    • Line 14: warning: exported function NewQueue should have comment or be unexported (golint)
    • Line 21: warning: exported method Queue.Consumers should have comment or be unexported (golint)
    • Line 25: warning: exported method Queue.Name should have comment or be unexported (golint)
    • Line 29: warning: exported method Queue.Messages should have comment or be unexported (golint)
    • wabbit/amqptest/server/server.go
    • Line 13: warning: exported const MaxChannels should have comment (or a comment on this block) or be unexported (golint)
    • Line 159: warning: exported function Connect should have comment or be unexported (golint)
    • Line 170: warning: exported function Close should have comment or be unexported (golint)
    • wabbit/amqptest/publisher.go
    • Line 5: warning: exported type Publisher should have comment or be unexported (golint)
    • Line 10: warning: exported function NewPublisher should have comment or be unexported (golint)
    • Line 27: warning: exported method Publisher.Publish should have comment or be unexported (golint)
    • wabbit/utils/opt.go
    • Line 33: warning: exported function ConvertOpt should have comment or be unexported (golint)
    • Line 87: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • wabbit/amqp/confirmation.go
    • Line 5: warning: exported type Confirmation should have comment or be unexported (golint)
    • Line 9: warning: exported method Confirmation.Ack should have comment or be unexported (golint)
    • Line 13: warning: exported method Confirmation.DeliveryTag should have comment or be unexported (golint)
    • wabbit/amqp/publisher.go
    • Line 5: warning: exported type Publisher should have comment or be unexported (golint)
    • Line 10: warning: exported function NewPublisher should have comment or be unexported (golint)
    • Line 30: warning: exported method Publisher.Publish should have comment or be unexported (golint)
    • wabbit/amqptest/server/channel.go
    • Line 15: warning: exported type Channel should have comment or be unexported (golint)
    • Line 52: warning: exported function NewChannel should have comment or be unexported (golint)
    • Line 66: warning: exported method Channel.QueueInspect should have comment or be unexported (golint)
    • Line 74: warning: exported method Channel.Confirm should have comment or be unexported (golint)
    • Line 80: warning: exported method Channel.NotifyPublish should have comment or be unexported (golint)
    • Line 105: warning: exported method Channel.Publish should have comment or be unexported (golint)
    • Line 210: warning: exported method Channel.Ack should have comment or be unexported (golint)
    • Line 262: warning: exported method Channel.Nack should have comment or be unexported (golint)
    • Line 307: warning: exported method Channel.Reject should have comment or be unexported (golint)
    • Line 311: warning: exported method Channel.Close should have comment or be unexported (golint)
    • wabbit/utils/error.go
    • Line 5: warning: exported type Error should have comment or be unexported (golint)
    • Line 12: warning: exported function NewError should have comment or be unexported (golint)
    • Line 25: warning: exported method Error.Code should have comment or be unexported (golint)
    • Line 29: warning: exported method Error.Reason should have comment or be unexported (golint)
    • Line 33: warning: exported method Error.Server should have comment or be unexported (golint)
    • Line 37: warning: exported method Error.Recover should have comment or be unexported (golint)
    • wabbit/amqp/channel.go
    • Line 16: warning: exported method Channel.Publish should have comment or be unexported (golint)
    • Line 34: warning: exported method Channel.Confirm should have comment or be unexported (golint)
    • Line 38: warning: exported method Channel.NotifyPublish should have comment or be unexported (golint)
    • Line 52: warning: exported method Channel.Consume should have comment or be unexported (golint)
    • Line 118: warning: exported method Channel.ExchangeDeclare should have comment or be unexported (golint)
    • Line 122: warning: exported method Channel.ExchangeDeclarePassive should have comment or be unexported (golint)
    • Line 177: warning: exported method Channel.QueueInspect should have comment or be unexported (golint)
    • Line 182: warning: exported method Channel.QueueUnbind should have comment or be unexported (golint)
    • Line 283: warning: exported method Channel.QueueDelete should have comment or be unexported (golint)
    • wabbit/amqp/delivery.go
    • Line 8: warning: exported type Delivery should have comment or be unexported (golint)
    • Line 12: warning: exported method Delivery.Body should have comment or be unexported (golint)
    • Line 16: warning: exported method Delivery.Headers should have comment or be unexported (golint)
    • Line 20: warning: exported method Delivery.DeliveryTag should have comment or be unexported (golint)
    • Line 24: warning: exported method Delivery.ConsumerTag should have comment or be unexported (golint)
    • Line 28: warning: exported method Delivery.MessageId should have comment or be unexported (golint)
    • wabbit/amqptest/server/exchange.go
    • Line 8: warning: exported type Exchange should have comment or be unexported (golint)
    • Line 14: warning: exported type TopicExchange should have comment or be unexported (golint)
    • Line 20: warning: exported function NewTopicExchange should have comment or be unexported (golint)
    • Line 54: warning: exported type DirectExchange should have comment or be unexported (golint)
    • Line 60: warning: exported function NewDirectExchange should have comment or be unexported (golint)
    • wabbit/amqptest/server/vhost.go
    • Line 43: warning: exported method VHost.Cancel should have comment or be unexported (golint)
    • Line 53: warning: exported method VHost.ExchangeDeclare should have comment or be unexported (golint)
    • Line 60: warning: exported method VHost.ExchangeDeclarePassive should have comment or be unexported (golint)
    • Line 94: warning: exported method VHost.QueueDeclare should have comment or be unexported (golint)
    • Line 101: warning: exported method VHost.QueueDeclarePassive should have comment or be unexported (golint)
    • Line 130: warning: exported method VHost.QueueDelete should have comment or be unexported (golint)
    • Line 138: warning: exported method VHost.QueueBind should have comment or be unexported (golint)
    • Line 164: warning: exported method VHost.QueueUnbind should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign94%

IneffAssign detects ineffectual assignments in Go code.


misspell91%

Misspell Finds commonly misspelled English words