Preparing report...

Report for github.com/silverswords/pulse

A+    Excellent!    Found 24 issues across 50 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!


gocyclo98%

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.


golint52%

Golint is a linter for Go source code.

    • pulse/pkg/subscription/options.go
    • Line 50: warning: exported function WithMiddlewares should have comment or be unexported (golint)
    • Line 57: warning: exported function WithCount should have comment or be unexported (golint)
    • Line 68: warning: exported function WithAutoACK should have comment or be unexported (golint)
    • Line 75: warning: exported type Option should have comment or be unexported (golint)
    • pulse/pkg/topic/options.go
    • Line 33: warning: comment on exported function WithOrdered should be of the form "WithOrdered ..." (golint)
    • Line 41: warning: exported function WithMiddlewares should have comment or be unexported (golint)
    • Line 48: warning: exported type Option should have comment or be unexported (golint)
    • pulse/pkg/topic/topic.go
    • Line 1: warning: package comment should be of the form "Package topic ..." (golint)
    • Line 34: warning: comment on exported const AckTopicPrefix should be of the form "AckTopicPrefix ..." (golint)
    • Line 36: warning: exported const PulsePrefix should have comment (or a comment on this block) or be unexported (golint)
    • Line 46: warning: exported type BundleTopic should have comment or be unexported (golint)
    • pulse/pkg/pubsub/driver/driver.go
    • Line 8: warning: comment on exported type DriverContext should be of the form "DriverContext ..." (with optional leading article) (golint)
    • Line 18: warning: exported type Driver should have comment or be unexported (golint)
    • Line 22: warning: exported type Conn should have comment or be unexported (golint)
    • Line 72: warning: exported type Subscription should have comment or be unexported (golint)
    • Line 81: warning: exported type ConnAsync should have comment or be unexported (golint)
    • Line 87: warning: exported type AckFeatures should have comment or be unexported (golint)
    • pulse/pkg/pubsub/driver/drivers/natsstreaming/driver.go
    • Line 56: warning: exported const ConsumerID should have comment (or a comment on this block) or be unexported (golint)
    • Line 68: warning: exported function NewConnector should have comment or be unexported (golint)
    • Line 94: warning: comment on exported type PubSubDriver should be of the form "PubSubDriver ..." (with optional leading article) (golint)
    • Line 99: warning: comment on exported method PubSubDriver.Features should be of the form "Features ..." (golint)
    • Line 105: warning: exported method PubSubDriver.SatisfyFeatures should have comment or be unexported (golint)
    • Line 122: warning: exported method PubSubDriver.OpenConnector should have comment or be unexported (golint)
    • Line 134: warning: comment on exported method PubSubDriver.Open should be of the form "Open ..." (golint)
    • pulse/pkg/subscription/subscription.go
    • Line 20: warning: exported const DefaultWebHookRequestTimeout should have comment (or a comment on this block) or be unexported (golint)
    • Line 29: warning: exported type Subscription should have comment or be unexported (golint)
    • Line 53: warning: comment on exported type ReceiveSettings should be of the form "ReceiveSettings ..." (with optional leading article) (golint)
    • Line 79: warning: comment on exported var DefaultRecieveSettings should be of the form "DefaultRecieveSettings ..." (golint)
    • Line 90: warning: comment on exported function NewSubscription should be of the form "NewSubscription ..." (golint)
    • Line 158: warning: comment on exported method Subscription.Receive should be of the form "Receive ..." (golint)
    • pulse/pkg/visitor/visitor.go
    • Line 19: warning: exported type DoFunc should have comment or be unexported (golint)
    • Line 21: warning: exported type Visitor should have comment or be unexported (golint)
    • Line 25: warning: comment on exported type Middleware should be of the form "Middleware ..." (with optional leading article) (golint)
    • Line 40: warning: exported type NameVisitor should have comment or be unexported (golint)
    • Line 44: warning: exported method NameVisitor.Do should have comment or be unexported (golint)
    • Line 50: warning: exported type FailedHandler should have comment or be unexported (golint)
    • Line 55: warning: exported method FailedHandler.FailedDo should have comment or be unexported (golint)
    • Line 64: warning: exported type RetryActor should have comment or be unexported (golint)
    • Line 70: warning: exported function WithRetry should have comment or be unexported (golint)
    • Line 76: warning: exported function NewRetryMessage should have comment or be unexported (golint)
    • Line 80: warning: comment on exported method RetryActor.NoRetry should be of the form "NoRetry ..." (golint)
    • Line 94: warning: exported method RetryActor.Do should have comment or be unexported (golint)
    • Line 142: warning: exported function NewDelayActor should have comment or be unexported (golint)
    • Line 146: warning: exported method DelayActor.Do should have comment or be unexported (golint)
    • Line 164: warning: exported type AutoAckMessage should have comment or be unexported (golint)
    • Line 168: warning: exported method AutoAckMessage.Do should have comment or be unexported (golint)
    • pulse/pkg/protocol/retry/retry.go
    • Line 18: warning: exported type BackoffStrategy should have comment or be unexported (golint)
    • Line 21: warning: exported const BackoffStrategyNone should have comment (or a comment on this block) or be unexported (golint)
    • Line 34: warning: comment on exported type Params should be of the form "Params ..." (with optional leading article) (golint)
    • pulse/pkg/utils/cyclequeue/queue.go
    • Line 12: warning: exported type Queue should have comment or be unexported (golint)
    • Line 23: warning: exported function NewQueue should have comment or be unexported (golint)
    • Line 37: warning: comment on exported method Queue.Clean should be of the form "Clean ..." (golint)
    • Line 47: warning: comment on exported method Queue.Length should be of the form "Length ..." (golint)
    • Line 87: warning: comment on exported method Queue.Append should be of the form "Append ..." (golint)
    • Line 121: warning: comment on exported method Queue.Prepend should be of the form "Prepend ..." (golint)
    • Line 145: warning: comment on exported method Queue.Front should be of the form "Front ..." (golint)
    • Line 157: warning: comment on exported method Queue.Back should be of the form "Back ..." (golint)
    • Line 213: warning: comment on exported method Queue.Remove should be of the form "Remove ..." (golint)
    • pulse/pkg/pubsub/pubsub.go
    • Line 17: warning: exported var Registry should have comment or be unexported (golint)
    • Line 118: warning: comment on exported type PubSub should be of the form "PubSub ..." (with optional leading article) (golint)
    • Line 141: warning: exported type DriverConn should have comment or be unexported (golint)
    • Line 158: warning: exported method DriverConn.Publish should have comment or be unexported (golint)
    • Line 162: warning: exported method DriverConn.Subscribe should have comment or be unexported (golint)
    • Line 166: warning: exported method DriverConn.Close should have comment or be unexported (golint)
    • Line 239: warning: exported method PubSub.Conn should have comment or be unexported (golint)
    • Line 302: warning: exported method PubSub.PublishContext should have comment or be unexported (golint)
    • pulse/pkg/protocol/aresult/asyncResult.go
    • Line 42: warning: exported method Result.Set should have comment or be unexported (golint)
    • Line 47: warning: exported type AsyncResultActor should have comment or be unexported (golint)
    • Line 52: warning: exported function NewAsyncResultActor should have comment or be unexported (golint)
    • Line 56: warning: exported method AsyncResultActor.Do should have comment or be unexported (golint)
    • pulse/pkg/protocol/response/response.go
    • Line 3: warning: exported type NoResponseMessage should have comment or be unexported (golint)
    • Line 5: warning: exported type WebHookMessage should have comment or be unexported (golint)
    • Line 7: warning: exported type BackMessage should have comment or be unexported (golint)
    • pulse/pkg/protocol/message.go
    • Line 8: warning: exported type Message should have comment or be unexported (golint)
    • Line 16: warning: exported function NewMessage should have comment or be unexported (golint)
    • Line 25: warning: exported method Message.Do should have comment or be unexported (golint)
    • Line 45: warning: exported function NewSubscribeRequest should have comment or be unexported (golint)
    • Line 49: warning: exported type Metadata should have comment or be unexported (golint)
    • Line 54: warning: exported function NewMetadata should have comment or be unexported (golint)
    • Line 58: warning: exported method Metadata.Clone should have comment or be unexported (golint)
    • Line 66: warning: comment on exported method Metadata.GetDriverName should be of the form "GetDriverName ..." (golint)
    • Line 75: warning: exported method Metadata.SetDriver should have comment or be unexported (golint)
    • pulse/pkg/utils/sshportforward/ssh.go
    • Line 16: warning: exported var ReTime should have comment or be unexported (golint)
    • Line 21: warning: comment on exported type Connect should be of the form "Connect ..." (with optional leading article) (golint)
    • Line 62: warning: exported function StartAction should have comment or be unexported (golint)
    • pulse/pkg/protocol/adapter/codec.go
    • Line 17: warning: exported function CreateCodec should have comment or be unexported (golint)
    • Line 24: warning: exported type EncodeVisitor should have comment or be unexported (golint)
    • Line 29: warning: comment on exported method EncodeVisitor.Do should be of the form "Do ..." (golint)
    • Line 43: warning: exported type DecodeVisitor should have comment or be unexported (golint)
    • Line 48: warning: exported method DecodeVisitor.Do should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


misspell0%

Misspell Finds commonly misspelled English words

An error occurred while running this test (exit status 2)