Preparing report...

Report for github.com/src-d/go-queue

A+    Excellent!    Found 3 issues across 10 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!


golint80%

Golint is a linter for Go source code.

    • go-queue/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 130: warning: exported method QueueSuite.TestJob_Reject_no_requeue should have comment or be unexported (golint)
    • Line 130: warning: don't use underscores in Go names; method TestJob_Reject_no_requeue should be TestJobRejectNoRequeue (golint)
    • Line 165: warning: exported method QueueSuite.TestJob_Reject_requeue should have comment or be unexported (golint)
    • Line 165: warning: don't use underscores in Go names; method TestJob_Reject_requeue should be TestJobRejectRequeue (golint)
    • Line 201: warning: exported method QueueSuite.TestPublish_nil should have comment or be unexported (golint)
    • Line 201: warning: don't use underscores in Go names; method TestPublish_nil should be TestPublishNil (golint)
    • Line 213: warning: exported method QueueSuite.TestPublish_empty should have comment or be unexported (golint)
    • Line 213: warning: don't use underscores in Go names; method TestPublish_empty should be TestPublishEmpty (golint)
    • Line 225: warning: exported method QueueSuite.TestPublishDelayed_nil should have comment or be unexported (golint)
    • Line 225: warning: don't use underscores in Go names; method TestPublishDelayed_nil should be TestPublishDelayedNil (golint)
    • Line 237: warning: exported method QueueSuite.TestPublishDelayed_empty should have comment or be unexported (golint)
    • Line 237: warning: don't use underscores in Go names; method TestPublishDelayed_empty should be TestPublishDelayedEmpty (golint)
    • Line 249: warning: exported method QueueSuite.TestPublishAndConsume_immediate_ack should have comment or be unexported (golint)
    • Line 249: warning: don't use underscores in Go names; method TestPublishAndConsume_immediate_ack should be TestPublishAndConsumeImmediateAck (golint)
    • Line 298: warning: exported method QueueSuite.TestConsumersCanShareJobIteratorConcurrently should have comment or be unexported (golint)
    • Line 360: warning: exported method QueueSuite.TestDelayed should have comment or be unexported (golint)
    • Line 403: warning: exported method QueueSuite.TestTransaction_Error should have comment or be unexported (golint)
    • Line 403: warning: don't use underscores in Go names; method TestTransaction_Error should be TestTransactionError (golint)
    • Line 434: warning: exported method QueueSuite.TestTransaction should have comment or be unexported (golint)
    • Line 467: warning: exported method QueueSuite.TestTransaction_not_supported should have comment or be unexported (golint)
    • Line 467: warning: don't use underscores in Go names; method TestTransaction_not_supported should be TestTransactionNotSupported (golint)
    • Line 483: warning: exported method QueueSuite.TestRetryQueue should have comment or be unexported (golint)
    • Line 548: 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!


ineffassign80%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!