Little bit of bitget progress #87
Annotations
10 errors and 10 warnings
common/common.go#L1
: # github.com/thrasher-corp/gocryptotrader/common [github.com/thrasher-corp/gocryptotrader/common.test]
|
common/common_test.go#L732
undefined: zeroValueUnix
|
common/common_test.go#L737
undefined: zeroValueUnix (typecheck)
|
exchanges/bitget/bitget_wrapper.go#L36
Error return value of `bi.SetupDefaults` is not checked (errcheck)
|
exchanges/bitget/bitget_wrapper.go#L101
Error return value of `bi.API.Endpoints.SetDefaultEndpoints` is not checked (errcheck)
|
exchanges/bitget/bitget_test.go#L1129
string `-FUTURES` has 35 occurrences, make it a constant (goconst)
|
exchanges/bitget/bitget_test.go#L238
string `****@virtual-bitget.com` has 6 occurrences, make it a constant (goconst)
|
exchanges/bitget/bitget.go#L428
commentedOutCode: may want to remove commented-out code (gocritic)
|
exchanges/bitget/bitget.go#L454
commentedOutCode: may want to remove commented-out code (gocritic)
|
exchanges/bitget/bitget.go#L4083
commentedOutCode: may want to remove commented-out code (gocritic)
|
exchanges/bitget/bitget.go#L264
exported: comment on exported method Bitget.QueryAnnouncements should be of the form "QueryAnnouncements ..." (revive)
|
exchanges/bitget/bitget.go#L80
var-naming: const bitgetBatchCreateSubAccApi should be bitgetBatchCreateSubAccAPI (revive)
|
exchanges/bitget/bitget_types.go#L97
exported: comment on exported type P2PMerListResp should be of the form "P2PMerListResp ..." (with optional leading article) (revive)
|
exchanges/bitget/bitget_types.go#L597
exported: comment on exported type PlaceSpotOrderStruct should be of the form "PlaceSpotOrderStruct ..." (with optional leading article) (revive)
|
exchanges/bitget/bitget_types.go#L1015
exported: comment on exported type OpenPositionsResp should be of the form "OpenPositionsResp ..." (with optional leading article) (revive)
|
exchanges/bitget/bitget_wrapper.go#L376
exported: comment on exported method Bitget.GetAccountFundingHistory should be of the form "GetAccountFundingHistory ..." (revive)
|
exchanges/bitget/bitget_test.go#L2162
superfluous-else: if block ends with a break statement, so drop this else and outdent its block (revive)
|
exchanges/bitget/bitget_wrapper.go#L235
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
|
exchanges/bitget/bitget_types.go#L1973
exported: exported type APY should have comment or be unexported (revive)
|
exchanges/bitget/bitget.go#L2412
unused-parameter: parameter 'pair' seems to be unused, consider removing or renaming it as _ (revive)
|
This job failed
Loading