Preparing report...

Report for github.com/ThreeDotsLabs/watermill-amqp

A+    Excellent!    Found 6 issues across 11 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!


golint45%

Golint is a linter for Go source code.

    • watermill-amqp/pkg/amqp/marshaler.go
    • Line 9: warning: exported const DefaultMessageUUIDHeaderKey should have comment or be unexported (golint)
    • Line 11: warning: comment on exported const MessageUUIDHeaderKey should be of the form "MessageUUIDHeaderKey ..." (golint)
    • Line 20: warning: exported type DefaultMarshaler should have comment or be unexported (golint)
    • Line 50: warning: exported method DefaultMarshaler.Marshal should have comment or be unexported (golint)
    • Line 73: warning: exported method DefaultMarshaler.Unmarshal should have comment or be unexported (golint)
    • watermill-amqp/pkg/amqp/subscriber.go
    • Line 15: warning: exported type Subscriber should have comment or be unexported (golint)
    • Line 21: warning: exported function NewSubscriber should have comment or be unexported (golint)
    • Line 94: warning: exported method Subscriber.SubscribeInitialize should have comment or be unexported (golint)
    • watermill-amqp/pkg/amqp/topology_builder.go
    • Line 22: warning: exported type DefaultTopologyBuilder should have comment or be unexported (golint)
    • Line 24: warning: exported method DefaultTopologyBuilder.ExchangeDeclare should have comment or be unexported (golint)
    • Line 36: warning: exported method DefaultTopologyBuilder.BuildTopology should have comment or be unexported (golint)
    • watermill-amqp/pkg/amqp/config.go
    • Line 200: warning: exported type Config should have comment or be unexported (golint)
    • Line 231: warning: exported method Config.ValidatePublisher should have comment or be unexported (golint)
    • Line 241: warning: exported method Config.ValidateSubscriber should have comment or be unexported (golint)
    • Line 251: warning: exported type ConnectionConfig should have comment or be unexported (golint)
    • Line 264: warning: exported type ExchangeConfig should have comment or be unexported (golint)
    • Line 335: warning: exported type QueueConfig should have comment or be unexported (golint)
    • Line 371: warning: comment on exported type QueueBindConfig should be of the form "QueueBindConfig ..." (with optional leading article) (golint)
    • Line 386: warning: exported type PublishConfig should have comment or be unexported (golint)
    • Line 404: warning: exported type ConsumeConfig should have comment or be unexported (golint)
    • Line 435: warning: comment on exported type QosConfig should be of the form "QosConfig ..." (with optional leading article) (golint)
    • Line 468: warning: exported type ReconnectConfig should have comment or be unexported (golint)
    • Line 475: warning: exported function DefaultReconnectConfig should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign90%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!