Preparing report...

Report for github.com/buddyspike/blaster

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


golint44%

Golint is a linter for Go source code.

    • blaster/sqs/sqs_binder.go
    • Line 30: warning: exported type SQSConfiguration should have comment or be unexported (golint)
    • Line 36: warning: exported type SQSTransporter should have comment or be unexported (golint)
    • Line 46: warning: exported method SQSTransporter.Messages should have comment or be unexported (golint)
    • Line 50: warning: exported method SQSTransporter.Delete should have comment or be unexported (golint)
    • Line 68: warning: exported method SQSTransporter.Poison should have comment or be unexported (golint)
    • Line 72: warning: exported method SQSTransporter.Start should have comment or be unexported (golint)
    • Line 122: warning: exported function NewSQSTransporter should have comment or be unexported (golint)
    • Line 146: warning: exported type SQSBinder should have comment or be unexported (golint)
    • Line 156: warning: exported method SQSBinder.Start should have comment or be unexported (golint)
    • Line 175: warning: exported method SQSBinder.Awaiter should have comment or be unexported (golint)
    • Line 179: warning: exported type SQSBinderBuilder should have comment or be unexported (golint)
    • Line 182: warning: exported method SQSBinderBuilder.Build should have comment or be unexported (golint)
    • blaster/kafka/config.go
    • Line 19: warning: exported type Config should have comment or be unexported (golint)
    • Line 30: warning: exported method Config.WithDefaults should have comment or be unexported (golint)
    • blaster/kafka/sarama_consumer_group_handler.go
    • Line 31: warning: exported type SaramaConsumerGroupHandler should have comment or be unexported (golint)
    • Line 40: warning: exported method SaramaConsumerGroupHandler.Setup should have comment or be unexported (golint)
    • Line 82: warning: exported method SaramaConsumerGroupHandler.Cleanup should have comment or be unexported (golint)
    • Line 100: warning: exported method SaramaConsumerGroupHandler.ConsumeClaim should have comment or be unexported (golint)
    • Line 148: warning: exported method SaramaConsumerGroupHandler.Done should have comment or be unexported (golint)
    • blaster/kafka/transporter.go
    • Line 23: warning: exported type Transporter should have comment or be unexported (golint)
    • Line 28: warning: exported method Transporter.Messages should have comment or be unexported (golint)
    • Line 32: warning: exported method Transporter.Delete should have comment or be unexported (golint)
    • Line 36: warning: exported method Transporter.Poison should have comment or be unexported (golint)
    • Line 40: warning: exported method Transporter.Close should have comment or be unexported (golint)
    • blaster/core/message_pump.go
    • Line 28: warning: exported type MessagePump should have comment or be unexported (golint)
    • Line 106: warning: exported method MessagePump.Awaiter should have comment or be unexported (golint)
    • Line 142: warning: exported function NewMessagePump should have comment or be unexported (golint)
    • blaster/core/stopwatch.go
    • Line 21: warning: exported type Lap should have comment or be unexported (golint)
    • Line 26: warning: exported type Stopwatch should have comment or be unexported (golint)
    • Line 32: warning: exported method Stopwatch.Lap should have comment or be unexported (golint)
    • Line 37: warning: exported method Stopwatch.Total should have comment or be unexported (golint)
    • Line 41: warning: exported function NewStopwatch should have comment or be unexported (golint)
    • blaster/utils/test_utils.go
    • Line 24: warning: exported type TestClock should have comment or be unexported (golint)
    • Line 28: warning: exported method TestClock.Now should have comment or be unexported (golint)
    • Line 32: warning: exported method TestClock.Forward should have comment or be unexported (golint)
    • Line 36: warning: exported method TestClock.Rewind should have comment or be unexported (golint)
    • Line 40: warning: exported function NewTestClock should have comment or be unexported (golint)
    • blaster/kafka/binder.go
    • Line 29: warning: exported type Binder should have comment or be unexported (golint)
    • Line 39: warning: exported method Binder.Start should have comment or be unexported (golint)
    • Line 78: warning: exported method Binder.Awaiter should have comment or be unexported (golint)
    • Line 82: warning: exported type KafkaBinderBuilder should have comment or be unexported (golint)
    • Line 85: warning: exported method KafkaBinderBuilder.Build should have comment or be unexported (golint)
    • blaster/kafka/types.go
    • Line 23: warning: exported const DataItemMessage should have comment or be unexported (golint)
    • Line 24: warning: exported const DefaultCommitIntervalSeconds should have comment or be unexported (golint)
    • Line 25: warning: exported const CommitReasonBufferFull should have comment or be unexported (golint)
    • Line 26: warning: exported const CommitReasonIdleTimeout should have comment or be unexported (golint)
    • Line 28: warning: exported type PartionHandler should have comment or be unexported (golint)
    • Line 35: warning: exported type Committer should have comment or be unexported (golint)
    • blaster/core/default_message_pump_runner.go
    • Line 26: warning: exported type DefaultMessagePumpRunner should have comment or be unexported (golint)
    • Line 30: warning: exported method DefaultMessagePumpRunner.Run should have comment or be unexported (golint)
    • Line 55: warning: exported function NewDefaultMessagePumpRunner should have comment or be unexported (golint)
    • blaster/core/handler_manager.go
    • Line 31: warning: exported type HandlerManager should have comment or be unexported (golint)
    • Line 41: warning: exported method HandlerManager.Start should have comment or be unexported (golint)
    • Line 95: warning: exported function NewHandlerManager should have comment or be unexported (golint)
    • blaster/core/retry_policy.go
    • Line 26: warning: exported type RetryPolicy should have comment or be unexported (golint)
    • Line 31: warning: exported method RetryPolicy.Execute should have comment or be unexported (golint)
    • Line 52: warning: exported function NewRetryPolicy should have comment or be unexported (golint)
    • blaster/kafka/buffered_committer.go
    • Line 27: warning: exported type CommitRequest should have comment or be unexported (golint)
    • Line 32: warning: exported method CommitRequest.Complete should have comment or be unexported (golint)
    • Line 37: warning: exported type BufferedCommitter should have comment or be unexported (golint)
    • Line 73: warning: exported method BufferedCommitter.Start should have comment or be unexported (golint)
    • Line 108: warning: exported method BufferedCommitter.Commit should have comment or be unexported (golint)
    • Line 118: warning: exported method BufferedCommitter.Stop should have comment or be unexported (golint)
    • Line 122: warning: exported method BufferedCommitter.Awaiter should have comment or be unexported (golint)
    • Line 150: warning: exported function NewBuferedComitter should have comment or be unexported (golint)
    • blaster/kafka/direct_committer.go
    • Line 25: warning: exported type DirectCommitter should have comment or be unexported (golint)
    • Line 30: warning: exported method DirectCommitter.Start should have comment or be unexported (golint)
    • Line 31: warning: exported method DirectCommitter.Stop should have comment or be unexported (golint)
    • Line 32: warning: exported method DirectCommitter.Awaiter should have comment or be unexported (golint)
    • Line 36: warning: exported method DirectCommitter.Commit should have comment or be unexported (golint)
    • Line 41: warning: exported function NewDirectCommitter should have comment or be unexported (golint)
    • blaster/core/http_dispatcher.go
    • Line 29: warning: exported type HttpDispatcher should have comment or be unexported (golint)
    • Line 33: warning: exported method HttpDispatcher.Dispatch should have comment or be unexported (golint)
    • Line 57: warning: exported function NewHttpDispatcher 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!