Preparing report...

Report for github.com/superstas/gcoin

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


gocyclo93%

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.

    • gcoin/gcoin/network/message/mocks/message_service__message_client_mock.go
    • Line 580: warning: cyclomatic complexity 37 of function (*MessageService_MessageClientMock).MinimockWait() is high (> 15) (gocyclo)
    • Line 536: warning: cyclomatic complexity 17 of function (*MessageService_MessageClientMock).MinimockFinish() is high (> 15) (gocyclo)
    • Line 642: warning: cyclomatic complexity 17 of function (*MessageService_MessageClientMock).AllMocksCalled() is high (> 15) (gocyclo)
    • Line 487: warning: cyclomatic complexity 17 of function (*MessageService_MessageClientMock).ValidateCallCounters() is high (> 15) (gocyclo)
    • gcoin/gcoin/network/message/mocks/message_service__message_server_mock.go
    • Line 652: warning: cyclomatic complexity 37 of function (*MessageService_MessageServerMock).MinimockWait() is high (> 15) (gocyclo)
    • Line 559: warning: cyclomatic complexity 17 of function (*MessageService_MessageServerMock).ValidateCallCounters() is high (> 15) (gocyclo)
    • Line 608: warning: cyclomatic complexity 17 of function (*MessageService_MessageServerMock).MinimockFinish() is high (> 15) (gocyclo)
    • Line 714: warning: cyclomatic complexity 17 of function (*MessageService_MessageServerMock).AllMocksCalled() is high (> 15) (gocyclo)
    • gcoin/gcoin/blockchain/storage_mock_test.go
    • Line 785: warning: cyclomatic complexity 41 of function (*StorageMock).MinimockWait() is high (> 15) (gocyclo)
    • Line 737: warning: cyclomatic complexity 19 of function (*StorageMock).MinimockFinish() is high (> 15) (gocyclo)
    • Line 684: warning: cyclomatic complexity 19 of function (*StorageMock).ValidateCallCounters() is high (> 15) (gocyclo)
    • Line 852: warning: cyclomatic complexity 19 of function (*StorageMock).AllMocksCalled() is high (> 15) (gocyclo)

golint96%

Golint is a linter for Go source code.

    • gcoin/gcoin/network/message/mocks/message_service__message_client_mock.go
    • Line 21: warning: don't use underscores in Go names; type MessageService_MessageClientMock should be MessageServiceMessageClientMock (golint)
    • Line 66: warning: don't use underscores in Go names; func NewMessageService_MessageClientMock should be NewMessageServiceMessageClientMock (golint)
    • Line 85: warning: don't use underscores in Go names; type mMessageService_MessageClientMockCloseSend should be mMessageServiceMessageClientMockCloseSend (golint)
    • Line 126: warning: don't use underscores in Go names; type mMessageService_MessageClientMockContext should be mMessageServiceMessageClientMockContext (golint)
    • Line 167: warning: don't use underscores in Go names; type mMessageService_MessageClientMockHeader should be mMessageServiceMessageClientMockHeader (golint)
    • Line 208: warning: don't use underscores in Go names; type mMessageService_MessageClientMockRecv should be mMessageServiceMessageClientMockRecv (golint)
    • Line 249: warning: don't use underscores in Go names; type mMessageService_MessageClientMockRecvMsg should be mMessageServiceMessageClientMockRecvMsg (golint)
    • Line 255: warning: don't use underscores in Go names; type MessageService_MessageClientMockRecvMsgParams should be MessageServiceMessageClientMockRecvMsgParams (golint)
    • Line 314: warning: don't use underscores in Go names; type mMessageService_MessageClientMockSend should be mMessageServiceMessageClientMockSend (golint)
    • Line 320: warning: don't use underscores in Go names; type MessageService_MessageClientMockSendParams should be MessageServiceMessageClientMockSendParams (golint)
    • Line 379: warning: don't use underscores in Go names; type mMessageService_MessageClientMockSendMsg should be mMessageServiceMessageClientMockSendMsg (golint)
    • Line 385: warning: don't use underscores in Go names; type MessageService_MessageClientMockSendMsgParams should be MessageServiceMessageClientMockSendMsgParams (golint)
    • Line 444: warning: don't use underscores in Go names; type mMessageService_MessageClientMockTrailer should be mMessageServiceMessageClientMockTrailer (golint)
    • gcoin/gcoin/network/message/mocks/message_service__message_server_mock.go
    • Line 21: warning: don't use underscores in Go names; type MessageService_MessageServerMock should be MessageServiceMessageServerMock (golint)
    • Line 66: warning: don't use underscores in Go names; func NewMessageService_MessageServerMock should be NewMessageServiceMessageServerMock (golint)
    • Line 85: warning: don't use underscores in Go names; type mMessageService_MessageServerMockContext should be mMessageServiceMessageServerMockContext (golint)
    • Line 126: warning: don't use underscores in Go names; type mMessageService_MessageServerMockRecv should be mMessageServiceMessageServerMockRecv (golint)
    • Line 167: warning: don't use underscores in Go names; type mMessageService_MessageServerMockRecvMsg should be mMessageServiceMessageServerMockRecvMsg (golint)
    • Line 173: warning: don't use underscores in Go names; type MessageService_MessageServerMockRecvMsgParams should be MessageServiceMessageServerMockRecvMsgParams (golint)
    • Line 232: warning: don't use underscores in Go names; type mMessageService_MessageServerMockSend should be mMessageServiceMessageServerMockSend (golint)
    • Line 238: warning: don't use underscores in Go names; type MessageService_MessageServerMockSendParams should be MessageServiceMessageServerMockSendParams (golint)
    • Line 297: warning: don't use underscores in Go names; type mMessageService_MessageServerMockSendHeader should be mMessageServiceMessageServerMockSendHeader (golint)
    • Line 303: warning: don't use underscores in Go names; type MessageService_MessageServerMockSendHeaderParams should be MessageServiceMessageServerMockSendHeaderParams (golint)
    • Line 362: warning: don't use underscores in Go names; type mMessageService_MessageServerMockSendMsg should be mMessageServiceMessageServerMockSendMsg (golint)
    • Line 368: warning: don't use underscores in Go names; type MessageService_MessageServerMockSendMsgParams should be MessageServiceMessageServerMockSendMsgParams (golint)
    • Line 427: warning: don't use underscores in Go names; type mMessageService_MessageServerMockSetHeader should be mMessageServiceMessageServerMockSetHeader (golint)
    • Line 433: warning: don't use underscores in Go names; type MessageService_MessageServerMockSetHeaderParams should be MessageServiceMessageServerMockSetHeaderParams (golint)
    • Line 492: warning: don't use underscores in Go names; type mMessageService_MessageServerMockSetTrailer should be mMessageServiceMessageServerMockSetTrailer (golint)
    • Line 498: warning: don't use underscores in Go names; type MessageService_MessageServerMockSetTrailerParams should be MessageServiceMessageServerMockSetTrailerParams (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!