Preparing report...

Report for github.com/integration-system/grmq

(v0.0.0-20211219155037-a632dad3a3ea)

A    Great!    Found 17 issues across 21 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!


gocyclo95%

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.

    • client.go
    • Line 88: warning: cyclomatic complexity 18 of function (*Client).runSession() is high (> 15) (gocyclo)

golint19%

Golint is a linter for Go source code.

    • consumer/consumer_options.go
    • Line 3: warning: exported type Option should have comment or be unexported (golint)
    • Line 5: warning: exported function WithName should have comment or be unexported (golint)
    • Line 11: warning: exported function WithPrefetchCount should have comment or be unexported (golint)
    • Line 17: warning: exported function WithConcurrency should have comment or be unexported (golint)
    • Line 23: warning: exported function WithMiddlewares should have comment or be unexported (golint)
    • topology/binding.go
    • Line 7: warning: exported type Binding should have comment or be unexported (golint)
    • Line 14: warning: exported function NewBinding should have comment or be unexported (golint)
    • topology/declarations.go
    • Line 3: warning: exported type Declarations should have comment or be unexported (golint)
    • Line 9: warning: exported function New should have comment or be unexported (golint)
    • Line 17: warning: exported type DeclarationsOption should have comment or be unexported (golint)
    • Line 19: warning: exported function WithQueue should have comment or be unexported (golint)
    • Line 26: warning: exported function WithDirectExchange should have comment or be unexported (golint)
    • Line 33: warning: exported function WithFanoutExchange should have comment or be unexported (golint)
    • Line 40: warning: exported function WithBinding should have comment or be unexported (golint)
    • topology/exchange.go
    • Line 7: warning: exported type Exchange should have comment or be unexported (golint)
    • Line 13: warning: exported function NewDirectExchange should have comment or be unexported (golint)
    • Line 21: warning: exported function NewFanoutExchange should have comment or be unexported (golint)
    • declarator.go
    • Line 12: warning: exported const DLXName should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: exported type Declarator should have comment or be unexported (golint)
    • Line 21: warning: exported function NewDeclarator should have comment or be unexported (golint)
    • Line 51: warning: exported method Declarator.Run should have comment or be unexported (golint)
    • Line 76: warning: exported method Declarator.Close should have comment or be unexported (golint)
    • publisher.go
    • Line 11: warning: exported type Publisher should have comment or be unexported (golint)
    • Line 16: warning: exported function NewPublisher should have comment or be unexported (golint)
    • Line 23: warning: exported method Publisher.Publish should have comment or be unexported (golint)
    • Line 31: warning: exported method Publisher.Run should have comment or be unexported (golint)
    • Line 36: warning: exported method Publisher.Close should have comment or be unexported (golint)
    • topology/queue.go
    • Line 7: warning: exported type QueueOption should have comment or be unexported (golint)
    • Line 9: warning: exported type Queue should have comment or be unexported (golint)
    • Line 15: warning: exported function NewQueue should have comment or be unexported (golint)
    • Line 26: warning: exported function WithDLQ should have comment or be unexported (golint)
    • Line 32: warning: exported function WithQueueArg should have comment or be unexported (golint)
    • client.go
    • Line 18: warning: exported type Client should have comment or be unexported (golint)
    • Line 30: warning: exported function New should have comment or be unexported (golint)
    • Line 44: warning: comment on exported method Client.Run should be of the form "Run ..." (golint)
    • Line 169: warning: comment on exported method Client.Shutdown should be of the form "Shutdown ..." (golint)
    • consumer.go
    • Line 12: warning: exported type Consumer should have comment or be unexported (golint)
    • Line 25: warning: exported function NewConsumer should have comment or be unexported (golint)
    • Line 38: warning: exported method Consumer.Run should have comment or be unexported (golint)
    • Line 99: warning: exported method Consumer.Close should have comment or be unexported (golint)
    • observer.go
    • Line 7: warning: exported type Observer should have comment or be unexported (golint)
    • Line 15: warning: exported type NoopObserver should have comment or be unexported (golint)
    • Line 18: warning: exported method NoopObserver.ClientReady should have comment or be unexported (golint)
    • Line 22: warning: exported method NoopObserver.ClientError should have comment or be unexported (golint)
    • Line 26: warning: exported method NoopObserver.ConsumerError should have comment or be unexported (golint)
    • Line 30: warning: exported method NoopObserver.ShutdownStarted should have comment or be unexported (golint)
    • Line 33: warning: exported method NoopObserver.ShutdownDone should have comment or be unexported (golint)
    • publisher/publisher_options.go
    • Line 3: warning: exported type Option should have comment or be unexported (golint)
    • Line 5: warning: exported function WithMiddlewares should have comment or be unexported (golint)
    • example/main.go
    • Line 17: warning: exported type LogObserver should have comment or be unexported (golint)
    • Line 21: warning: exported method LogObserver.ClientError should have comment or be unexported (golint)
    • Line 25: warning: exported method LogObserver.ConsumerError should have comment or be unexported (golint)
    • client_options.go
    • Line 11: warning: exported type ClientOption should have comment or be unexported (golint)
    • Line 13: warning: exported function WithPublishers should have comment or be unexported (golint)
    • Line 19: warning: exported function WithConsumers should have comment or be unexported (golint)
    • Line 25: warning: exported function WithDeclarations should have comment or be unexported (golint)
    • Line 31: warning: exported function WithTopologyBuilding should have comment or be unexported (golint)
    • Line 38: warning: exported function WithObserver should have comment or be unexported (golint)
    • Line 44: warning: exported function WithReconnectTimeout should have comment or be unexported (golint)
    • publisher/publisher.go
    • Line 12: warning: exported var ErrPublisherIsNotInitialized should have comment or be unexported (golint)
    • Line 15: warning: exported type Middleware should have comment or be unexported (golint)
    • Line 17: warning: exported type RoundTripper should have comment or be unexported (golint)
    • Line 21: warning: exported type RoundTripperFunc should have comment or be unexported (golint)
    • Line 23: warning: exported method RoundTripperFunc.Publish should have comment or be unexported (golint)
    • Line 27: warning: exported type Publisher should have comment or be unexported (golint)
    • Line 35: warning: exported function New should have comment or be unexported (golint)
    • Line 47: warning: exported method Publisher.Publish should have comment or be unexported (golint)
    • Line 55: warning: exported method Publisher.PublishTo should have comment or be unexported (golint)
    • Line 63: warning: exported method Publisher.SetRoundTripper should have comment or be unexported (golint)
    • consumer/consumer.go
    • Line 10: warning: exported type Handler should have comment or be unexported (golint)
    • Line 14: warning: exported type HandlerFunc should have comment or be unexported (golint)
    • Line 16: warning: exported method HandlerFunc.Handle should have comment or be unexported (golint)
    • Line 20: warning: exported type Middleware should have comment or be unexported (golint)
    • Line 22: warning: exported type Consumer should have comment or be unexported (golint)
    • Line 32: warning: exported function New should have comment or be unexported (golint)
    • Line 57: warning: exported method Consumer.Handler should have comment or be unexported (golint)
    • consumer/delivery.go
    • Line 9: warning: exported var ErrDeliveryAlreadyHandled should have comment or be unexported (golint)
    • Line 12: warning: exported type Donner should have comment or be unexported (golint)
    • Line 16: warning: exported type Delivery should have comment or be unexported (golint)
    • Line 22: warning: exported function NewDelivery should have comment or be unexported (golint)
    • Line 29: warning: exported method Delivery.Source should have comment or be unexported (golint)
    • Line 33: warning: exported method Delivery.Ack should have comment or be unexported (golint)
    • Line 48: warning: exported method Delivery.Nack should have comment or be unexported (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!