Gofmt formats Go programs. We run gofmt -s
on your code, where -s
is for the "simplify" command
No problems detected. Good job!
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!
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!
Golint is a linter for Go source code.
-
bitstamp-go/api_config.go
- Line 31: warning: exported type ApiOption should have comment or be unexported (golint)
- Line 33: warning: exported function UrlDomain should have comment or be unexported (golint)
- Line 43: warning: exported function Credentials should have comment or be unexported (golint)
- Line 51: warning: exported function NonceGenerator should have comment or be unexported (golint)
-
bitstamp-go/http_api.go
- Line 38: warning: exported type ApiClient should have comment or be unexported (golint)
- Line 42: warning: exported function NewApiClient should have comment or be unexported (golint)
- Line 67: warning: don't use underscores in Go names; var url_ should be url (golint)
- Line 88: warning: exported type TickerResponse should have comment or be unexported (golint)
- Line 100: warning: comment on exported method ApiClient.V1Ticker should be of the form "V1Ticker ..." (golint)
- Line 106: warning: comment on exported method ApiClient.V2Ticker should be of the form "V2Ticker ..." (golint)
- Line 113: warning: comment on exported method ApiClient.V1HourlyTicker should be of the form "V1HourlyTicker ..." (golint)
- Line 119: warning: comment on exported method ApiClient.V2HourlyTicker should be of the form "V2HourlyTicker ..." (golint)
- Line 126: warning: exported type OrderBookEntry should have comment or be unexported (golint)
- Line 132: warning: comment on exported method OrderBookEntry.UnmarshalJSON should be of the form "UnmarshalJSON ..." (golint)
- Line 172: warning: exported type V1OrderBookResponse should have comment or be unexported (golint)
- Line 178: warning: comment on exported method ApiClient.V1OrderBook should be of the form "V1OrderBook ..." (golint)
- Line 184: warning: exported type V2OrderBookResponse should have comment or be unexported (golint)
- Line 189: warning: comment on exported method ApiClient.V2OrderBook should be of the form "V2OrderBook ..." (golint)
- Line 205: warning: comment on exported type V2BalanceResponse should be of the form "V2BalanceResponse ..." (with optional leading article) (golint)
- Line 312: warning: comment on exported method ApiClient.V2Balance should be of the form "V2Balance ..." (golint)
- Line 314: warning: don't use underscores in Go names; var url_ should be url (golint)
- Line 340: warning: comment on exported type V2OpenOrdersResponse should be of the form "V2OpenOrdersResponse ..." (with optional leading article) (golint)
- Line 353: warning: comment on exported method ApiClient.V2OpenOrders should be of the form "V2OpenOrders ..." (golint)
- Line 362: warning: don't use underscores in Go names; var url_ should be url (golint)
- Line 383: warning: comment on exported type V2CancelOrderResponse should be of the form "V2CancelOrderResponse ..." (with optional leading article) (golint)
- Line 393: warning: exported method ApiClient.V2CancelOrder should have comment or be unexported (golint)
- Line 394: warning: don't use underscores in Go names; var url_ should be url (golint)
- Line 427: warning: comment on exported type V2LimitOrderResponse should be of the form "V2LimitOrderResponse ..." (with optional leading article) (golint)
- Line 441: warning: don't use underscores in Go names; var url_ should be url (golint)
- Line 480: warning: exported method ApiClient.V2BuyLimitOrder should have comment or be unexported (golint)
- Line 484: warning: exported method ApiClient.V2SellLimitOrder should have comment or be unexported (golint)
- Line 488: warning: exported type V2MarketOrderResponse should have comment or be unexported (golint)
- Line 501: warning: don't use underscores in Go names; var url_ should be url (golint)
- Line 533: warning: exported method ApiClient.V2BuyMarketOrder should have comment or be unexported (golint)
- Line 537: warning: exported method ApiClient.V2SellMarketOrder should have comment or be unexported (golint)
- Line 541: warning: exported type V2InstantOrderResponse should have comment or be unexported (golint)
- Line 554: warning: don't use underscores in Go names; var url_ should be url (golint)
- Line 586: warning: exported method ApiClient.V2BuyInstantOrder should have comment or be unexported (golint)
- Line 590: warning: exported method ApiClient.V2SellInstantOrder should have comment or be unexported (golint)
-
bitstamp-go/websocket.go
- Line 12: warning: exported type WsEvent should have comment or be unexported (golint)
- Line 18: warning: exported type WsClient should have comment or be unexported (golint)
- Line 27: warning: exported function NewWsClient should have comment or be unexported (golint)
- Line 79: warning: exported method WsClient.Close should have comment or be unexported (golint)
- Line 83: warning: exported method WsClient.Subscribe should have comment or be unexported (golint)
- Line 95: warning: exported method WsClient.Unsubscribe should have comment or be unexported (golint)
-
bitstamp-go/ws_config.go
- Line 22: warning: exported type WsOption should have comment or be unexported (golint)
- Line 24: warning: exported function WsUrl should have comment or be unexported (golint)
- Line 30: warning: exported function Timeout should have comment or be unexported (golint)
Checks whether your project has a LICENSE file.
No problems detected. Good job!
IneffAssign detects ineffectual assignments in Go code.
No problems detected. Good job!
Misspell Finds commonly misspelled English words
No problems detected. Good job!