Preparing report...

Report for github.com/btnguyen2k/singu

A+    Excellent!    Found 4 issues across 6 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!


gocyclo83%

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.

    • singu/test/singu_test.go
    • Line 261: warning: cyclomatic complexity 55 of function MyTest_QueueTakeAndRequeueOne() is high (> 15) (gocyclo)
    • Line 455: warning: cyclomatic complexity 54 of function MyTest_EphemeralMaxSize() is high (> 15) (gocyclo)
    • Line 157: warning: cyclomatic complexity 37 of function MyTest_QueueTakeAndFinishOne() is high (> 15) (gocyclo)
    • Line 83: warning: cyclomatic complexity 28 of function MyTest_QueueAndTakeOne() is high (> 15) (gocyclo)
    • Line 388: warning: cyclomatic complexity 25 of function MyTest_EphemeralDisabled() is high (> 15) (gocyclo)
    • Line 584: warning: cyclomatic complexity 23 of function MyTest_QueueMaxSize() is high (> 15) (gocyclo)

golint33%

Golint is a linter for Go source code.

    • singu/leveldb/leveldb.go
    • Line 64: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 210: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • singu/test/inmem_test.go
    • Line 52: warning: don't use underscores in Go names; func doTestInmemQueue_LongQueue should be doTestInmemQueueLongQueue (golint)
    • Line 64: warning: don't use underscores in Go names; func doTestInmemQueue_MultiThreads should be doTestInmemQueueMultiThreads (golint)
    • singu/test/leveldb_test.go
    • Line 69: warning: don't use underscores in Go names; func doTestLeveldbQueue_LongQueue should be doTestLeveldbQueueLongQueue (golint)
    • Line 83: warning: don't use underscores in Go names; func doTestLeveldbQueue_MultiThreads should be doTestLeveldbQueueMultiThreads (golint)
    • singu/test/singu_test.go
    • Line 18: warning: don't use underscores in Go names; func MyTest_Empty should be MyTestEmpty (golint)
    • Line 48: warning: don't use underscores in Go names; func MyTest_QueueOne should be MyTestQueueOne (golint)
    • Line 83: warning: don't use underscores in Go names; func MyTest_QueueAndTakeOne should be MyTestQueueAndTakeOne (golint)
    • Line 157: warning: don't use underscores in Go names; func MyTest_QueueTakeAndFinishOne should be MyTestQueueTakeAndFinishOne (golint)
    • Line 261: warning: don't use underscores in Go names; func MyTest_QueueTakeAndRequeueOne should be MyTestQueueTakeAndRequeueOne (golint)
    • Line 388: warning: don't use underscores in Go names; func MyTest_EphemeralDisabled should be MyTestEphemeralDisabled (golint)
    • Line 455: warning: don't use underscores in Go names; func MyTest_EphemeralMaxSize should be MyTestEphemeralMaxSize (golint)
    • Line 584: warning: don't use underscores in Go names; func MyTest_QueueMaxSize should be MyTestQueueMaxSize (golint)
    • Line 645: warning: don't use underscores in Go names; func MyTest_LongQueue should be MyTestLongQueue (golint)
    • Line 712: warning: don't use underscores in Go names; func MyTest_MultiThreads should be MyTestMultiThreads (golint)
    • Line 783: warning: don't use underscores in Go names; func MyTest_OrphanMessagesWithLimit should be MyTestOrphanMessagesWithLimit (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!