Preparing report...

Report for github.com/eventials/goevents

A+    Excellent!    Found 12 issues across 20 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!


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!


golint40%

Golint is a linter for Go source code.

    • goevents/mock/consumer.go
    • Line 8: warning: exported type Consumer should have comment or be unexported (golint)
    • Line 12: warning: exported function NewMockConsumer should have comment or be unexported (golint)
    • Line 16: warning: exported method Consumer.Subscribe should have comment or be unexported (golint)
    • Line 21: warning: exported method Consumer.Unsubscribe should have comment or be unexported (golint)
    • Line 26: warning: exported method Consumer.Consume should have comment or be unexported (golint)
    • Line 30: warning: exported method Consumer.Close should have comment or be unexported (golint)
    • Line 34: warning: exported method Consumer.BindActions should have comment or be unexported (golint)
    • Line 39: warning: exported method Consumer.UnbindActions should have comment or be unexported (golint)
    • goevents/mock/producer.go
    • Line 8: warning: exported type Producer should have comment or be unexported (golint)
    • Line 12: warning: exported function NewMockProducer should have comment or be unexported (golint)
    • Line 16: warning: exported method Producer.Publish should have comment or be unexported (golint)
    • Line 20: warning: exported method Producer.Close should have comment or be unexported (golint)
    • Line 24: warning: exported method Producer.NotifyClose should have comment or be unexported (golint)
    • goevents/sns/consumer.go
    • Line 19: warning: exported var ErrEmptyConfig should have comment or be unexported (golint)
    • Line 37: warning: exported type ConsumerConfig should have comment or be unexported (golint)
    • Line 97: warning: exported function NewConsumer should have comment or be unexported (golint)
    • Line 140: warning: exported function MustNewConsumer should have comment or be unexported (golint)
    • goevents/mock/connection.go
    • Line 8: warning: exported type Connection should have comment or be unexported (golint)
    • Line 12: warning: exported function NewMockConnection should have comment or be unexported (golint)
    • Line 16: warning: exported method Connection.Consumer should have comment or be unexported (golint)
    • Line 21: warning: exported method Connection.Producer should have comment or be unexported (golint)
    • Line 26: warning: exported method Connection.Close should have comment or be unexported (golint)
    • Line 30: warning: exported method Connection.NotifyConnectionClose should have comment or be unexported (golint)
    • Line 35: warning: exported method Connection.NotifyReestablish should have comment or be unexported (golint)
    • Line 40: warning: exported method Connection.WaitUntilConnectionCloses should have comment or be unexported (golint)
    • Line 44: warning: exported method Connection.WaitUntilConnectionReestablished should have comment or be unexported (golint)
    • Line 48: warning: exported method Connection.IsConnected should have comment or be unexported (golint)
    • goevents/messaging/consumer.go
    • Line 8: warning: exported const MaxInt32 should have comment (or a comment on this block) or be unexported (golint)
    • Line 12: warning: exported type SubscribeOptions should have comment or be unexported (golint)
    • Line 23: warning: exported type EventHandler should have comment or be unexported (golint)
    • Line 25: warning: exported type Consumer should have comment or be unexported (golint)
    • goevents/sns/producer.go
    • Line 20: warning: exported type ProducerConfig should have comment or be unexported (golint)
    • Line 59: warning: exported function NewProducer should have comment or be unexported (golint)
    • Line 89: warning: exported function MustNewProducer should have comment or be unexported (golint)
    • goevents/amqp/consumer.go
    • Line 250: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 573: 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)

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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!