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.
-
go-ftx/ftx/stream/conn.go
- Line 18: warning: exported const ChannelOrderBook should have comment (or a comment on this block) or be unexported (golint)
- Line 48: warning: exported type Conn should have comment or be unexported (golint)
- Line 55: warning: exported function New should have comment or be unexported (golint)
- Line 59: warning: exported method Conn.Recv should have comment or be unexported (golint)
- Line 103: warning: exported method Conn.RecvRaw should have comment or be unexported (golint)
- Line 108: warning: exported method Conn.Ping should have comment or be unexported (golint)
- Line 112: warning: exported method Conn.PingRegular should have comment or be unexported (golint)
- Line 128: warning: exported method Conn.Login should have comment or be unexported (golint)
- Line 159: warning: exported method Conn.Subscribe should have comment or be unexported (golint)
- Line 170: warning: exported method Conn.Unsubscribe should have comment or be unexported (golint)
- Line 181: warning: exported method Conn.Close should have comment or be unexported (golint)
-
go-ftx/ftx/stream/model.go
- Line 9: warning: exported type Time should have comment or be unexported (golint)
- Line 13: warning: exported method Time.UnmarshalJSON should have comment or be unexported (golint)
- Line 24: warning: exported type General should have comment or be unexported (golint)
- Line 30: warning: exported type Error should have comment or be unexported (golint)
- Line 36: warning: exported type Pong should have comment or be unexported (golint)
- Line 40: warning: exported type OrderBook should have comment or be unexported (golint)
- Line 51: warning: exported type Trade should have comment or be unexported (golint)
- Line 63: warning: exported type Ticker should have comment or be unexported (golint)
- Line 75: warning: exported type Fills should have comment or be unexported (golint)
- Line 95: warning: exported type Orders should have comment or be unexported (golint)
-
go-ftx/ftx/account.go
- Line 8: warning: exported type AccountService should have comment or be unexported (golint)
- Line 16: warning: exported type Account should have comment or be unexported (golint)
- Line 43: warning: exported type Position should have comment or be unexported (golint)
- Line 71: warning: exported const Leverage1X should have comment (or a comment on this block) or be unexported (golint)
- Line 81: warning: exported type RequestLeverage should have comment or be unexported (golint)
-
go-ftx/ftx/client.go
- Line 25: warning: exported const HeaderKey should have comment (or a comment on this block) or be unexported (golint)
- Line 35: warning: exported type Client should have comment or be unexported (golint)
- Line 49: warning: exported function New should have comment or be unexported (golint)
- Line 68: warning: exported method Client.DoPublic should have comment or be unexported (golint)
- Line 72: warning: exported method Client.DoPrivate should have comment or be unexported (golint)
- Line 76: warning: exported type Response should have comment or be unexported (golint)
- Line 152: warning: exported method Client.Connect should have comment or be unexported (golint)
-
go-ftx/ftx/market.go
- Line 9: warning: exported type MarketService should have comment or be unexported (golint)
- Line 28: warning: exported type Market should have comment or be unexported (golint)
- Line 53: warning: exported type OrderBook should have comment or be unexported (golint)
- Line 58: warning: exported type GetOrderBookOptions should have comment or be unexported (golint)
- Line 75: warning: exported type Trade should have comment or be unexported (golint)
- Line 84: warning: exported type GetTradesOptions should have comment or be unexported (golint)
- Line 103: warning: exported type Candle should have comment or be unexported (golint)
- Line 112: warning: exported type GetHistoricalPrices should have comment or be unexported (golint)
- Line 120: warning: exported const Resolution15s should have comment (or a comment on this block) or be unexported (golint)
-
go-ftx/ftx/option.go
- Line 5: warning: exported type Option should have comment or be unexported (golint)
- Line 7: warning: exported function WithAuth should have comment or be unexported (golint)
- Line 14: warning: exported function WithSubaccount 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!