Preparing report...

Report for github.com/zoh/go-binance

A+    Excellent!    Found 13 issues across 73 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!


golint91%

Golint is a linter for Go source code.

    • go-binance/futures/client.go
    • Line 435: warning: comment on exported method Client.NewChangePositionModeService should be of the form "NewChangePositionModeService ..." (golint)
    • Line 440: warning: comment on exported method Client.NewGetPositionModeService should be of the form "NewGetPositionModeService ..." (golint)
    • go-binance/futures/position_service.go
    • Line 109: warning: comment on exported method UpdatePositionMarginService.PositionSide should be of the form "PositionSide ..." (golint)
    • Line 157: warning: comment on exported method ChangePositionModeService.DualSide should be of the form "DualSide ..." (golint)
    • Line 189: warning: comment on exported type PositionMode should be of the form "PositionMode ..." (with optional leading article) (golint)
    • go-binance/speed.go
    • Line 5: warning: exported type Speed should have comment or be unexported (golint)
    • Line 11: warning: exported function NewSpeed should have comment or be unexported (golint)
    • Line 19: warning: exported method Speed.IsEmpty should have comment or be unexported (golint)
    • go-binance/websocket_handlers.go
    • Line 9: warning: exported function ParseWsWsPartialDepthEvent should have comment or be unexported (golint)
    • Line 40: warning: exported function ParseWsDepthEvent should have comment or be unexported (golint)
    • Line 70: warning: exported function ParseWsAggTradeEvent should have comment or be unexported (golint)
    • Line 90: warning: exported function ParseWsTradeEvent should have comment or be unexported (golint)
    • go-binance/websocket_manual_subscribtion.go
    • Line 18: warning: exported type StreamEventType should have comment or be unexported (golint)
    • Line 21: warning: exported const SUBSCRIBE should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: comment on exported const SET_PROPERTY should be of the form "SET_PROPERTY ..." (golint)
    • Line 32: warning: comment on exported const StreamEventDepth should be of the form "StreamEventDepth ..." (golint)
    • Line 39: warning: exported type StreamEvent should have comment or be unexported (golint)
    • Line 44: warning: exported type WebsocketMarketStreams should have comment or be unexported (golint)
    • Line 60: warning: exported method WebsocketMarketStreams.GetStreamEvents should have comment or be unexported (golint)
    • Line 75: warning: exported function NewMarketStreams should have comment or be unexported (golint)
    • Line 232: warning: exported method WebsocketMarketStreams.Unsubscribe should have comment or be unexported (golint)
    • Line 261: warning: comment on exported method WebsocketMarketStreams.GetSubscriptions should be of the form "GetSubscriptions ..." (golint)
    • Line 298: warning: exported type RequestSubscriber should have comment or be unexported (golint)
    • Line 330: warning: exported function NewDepthSubscribeOptions should have comment or be unexported (golint)
    • Line 341: warning: exported function CustomSubscribeOptions should have comment or be unexported (golint)

gocyclo98%

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.


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell97%

Misspell Finds commonly misspelled English words