Preparing report...

Report for github.com/go-mq/mq

A+    Excellent!    Found 3 issues across 8 files

Tweet

gofmt87%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


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!


golint75%

Golint is a linter for Go source code.

    • mq/job.go
    • Line 18: warning: exported const ContentTypeMsgpack should have comment (or a comment on this block) or be unexported (golint)
    • Line 113: warning: exported type Unmarshaler should have comment or be unexported (golint)
    • Line 117: warning: exported type Marshaler should have comment or be unexported (golint)
    • mq/test/suite.go
    • Line 25: warning: exported function NewName should have comment or be unexported (golint)
    • Line 29: warning: exported type QueueSuite should have comment or be unexported (golint)
    • Line 39: warning: exported method QueueSuite.SetupTest should have comment or be unexported (golint)
    • Line 48: warning: exported method QueueSuite.TearDownTest should have comment or be unexported (golint)
    • Line 52: warning: exported method QueueSuite.TestConsume_empty should have comment or be unexported (golint)
    • Line 52: warning: don't use underscores in Go names; method TestConsume_empty should be TestConsumeEmpty (golint)
    • Line 68: warning: exported method QueueSuite.TestJobIter_Next_closed should have comment or be unexported (golint)
    • Line 68: warning: don't use underscores in Go names; method TestJobIter_Next_closed should be TestJobIterNextClosed (golint)
    • Line 86: warning: exported method QueueSuite.TestJobIter_Next_empty should have comment or be unexported (golint)
    • Line 86: warning: don't use underscores in Go names; method TestJobIter_Next_empty should be TestJobIterNextEmpty (golint)
    • Line 129: warning: exported method QueueSuite.TestJob_Reject_no_requeue should have comment or be unexported (golint)
    • Line 129: warning: don't use underscores in Go names; method TestJob_Reject_no_requeue should be TestJobRejectNoRequeue (golint)
    • Line 163: warning: exported method QueueSuite.TestJob_Reject_requeue should have comment or be unexported (golint)
    • Line 163: warning: don't use underscores in Go names; method TestJob_Reject_requeue should be TestJobRejectRequeue (golint)
    • Line 198: warning: exported method QueueSuite.TestPublish_nil should have comment or be unexported (golint)
    • Line 198: warning: don't use underscores in Go names; method TestPublish_nil should be TestPublishNil (golint)
    • Line 210: warning: exported method QueueSuite.TestPublish_empty should have comment or be unexported (golint)
    • Line 210: warning: don't use underscores in Go names; method TestPublish_empty should be TestPublishEmpty (golint)
    • Line 222: warning: exported method QueueSuite.TestPublishDelayed_nil should have comment or be unexported (golint)
    • Line 222: warning: don't use underscores in Go names; method TestPublishDelayed_nil should be TestPublishDelayedNil (golint)
    • Line 234: warning: exported method QueueSuite.TestPublishDelayed_empty should have comment or be unexported (golint)
    • Line 234: warning: don't use underscores in Go names; method TestPublishDelayed_empty should be TestPublishDelayedEmpty (golint)
    • Line 246: warning: exported method QueueSuite.TestPublishAndConsume_immediate_ack should have comment or be unexported (golint)
    • Line 246: warning: don't use underscores in Go names; method TestPublishAndConsume_immediate_ack should be TestPublishAndConsumeImmediateAck (golint)
    • Line 294: warning: exported method QueueSuite.TestConsumersCanShareJobIteratorConcurrently should have comment or be unexported (golint)
    • Line 355: warning: exported method QueueSuite.TestDelayed should have comment or be unexported (golint)
    • Line 397: warning: exported method QueueSuite.TestTransaction_Error should have comment or be unexported (golint)
    • Line 397: warning: don't use underscores in Go names; method TestTransaction_Error should be TestTransactionError (golint)
    • Line 427: warning: exported method QueueSuite.TestTransaction should have comment or be unexported (golint)
    • Line 459: warning: exported method QueueSuite.TestTransaction_not_supported should have comment or be unexported (golint)
    • Line 459: warning: don't use underscores in Go names; method TestTransaction_not_supported should be TestTransactionNotSupported (golint)
    • Line 475: warning: exported method QueueSuite.TestRetryQueue should have comment or be unexported (golint)
    • Line 538: warning: exported method QueueSuite.TestConcurrent should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign75%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!