qa/spelling: Add Codespell support (#1121)

* Add codespell support

* Fix paths

* Add HTML files to exclusion list
This commit is contained in:
Adrian Gallagher
2023-01-30 12:36:56 +11:00
committed by GitHub
parent c785ae73a7
commit a79e0d2b3e
108 changed files with 359 additions and 318 deletions

View File

@@ -206,7 +206,7 @@ func (b *Bitmex) GetTrollboxConnectedUsers(ctx context.Context) (ConnectedUsers,
}
// GetAccountExecutions returns all raw transactions, which includes order
// opening and cancelation, and order status changes. It can be quite noisy.
// opening and cancellation, and order status changes. It can be quite noisy.
// More focused information is available at /execution/tradeHistory.
func (b *Bitmex) GetAccountExecutions(ctx context.Context, params *GenericRequestParams) ([]Execution, error) {
var executionList []Execution

View File

@@ -109,7 +109,7 @@ func (p *APIKeyParams) ToURLVals(path string) (string, error) {
return common.EncodeURLValues(path, values), nil
}
// IsNil checks to see if any values has been set for the paramater
// IsNil checks to see if any values has been set for the parameter
func (p *APIKeyParams) IsNil() bool {
return (APIKeyParams{}) == *p
}
@@ -144,7 +144,7 @@ func (p *ChatGetParams) ToURLVals(path string) (string, error) {
return common.EncodeURLValues(path, values), nil
}
// IsNil checks to see if any values has been set for the paramater
// IsNil checks to see if any values has been set for the parameter
func (p *ChatGetParams) IsNil() bool {
return *p == (ChatGetParams{})
}
@@ -172,7 +172,7 @@ func (p ChatSendParams) ToURLVals(path string) (string, error) {
return "", nil
}
// IsNil checks to see if any values has been set for the paramater
// IsNil checks to see if any values has been set for the parameter
func (p *ChatSendParams) IsNil() bool {
return *p == (ChatSendParams{})
}
@@ -229,7 +229,7 @@ func (p *GenericRequestParams) ToURLVals(path string) (string, error) {
return common.EncodeURLValues(path, values), nil
}
// IsNil checks to see if any values has been set for the paramater
// IsNil checks to see if any values has been set for the parameter
func (p *GenericRequestParams) IsNil() bool {
return *p == (GenericRequestParams{})
}
@@ -251,7 +251,7 @@ func (p LeaderboardGetParams) ToURLVals(path string) (string, error) {
return "", nil
}
// IsNil checks to see if any values has been set for the paramater
// IsNil checks to see if any values has been set for the parameter
func (p LeaderboardGetParams) IsNil() bool {
return p == (LeaderboardGetParams{})
}
@@ -343,7 +343,7 @@ func (p *OrderNewParams) ToURLVals(path string) (string, error) {
return "", nil
}
// IsNil checks to see if any values has been set for the paramater
// IsNil checks to see if any values has been set for the parameter
func (p *OrderNewParams) IsNil() bool {
return *p == (OrderNewParams{})
}
@@ -408,7 +408,7 @@ func (p *OrderAmendParams) ToURLVals(path string) (string, error) {
return "", nil
}
// IsNil checks to see if any values has been set for the paramater
// IsNil checks to see if any values has been set for the parameter
func (p *OrderAmendParams) IsNil() bool {
return *p == (OrderAmendParams{})
}
@@ -436,7 +436,7 @@ func (p OrderCancelParams) ToURLVals(path string) (string, error) {
return "", nil
}
// IsNil checks to see if any values has been set for the paramater
// IsNil checks to see if any values has been set for the parameter
func (p OrderCancelParams) IsNil() bool {
return p == (OrderCancelParams{})
}
@@ -467,7 +467,7 @@ func (p OrderCancelAllParams) ToURLVals(path string) (string, error) {
return "", nil
}
// IsNil checks to see if any values has been set for the paramater
// IsNil checks to see if any values has been set for the parameter
func (p OrderCancelAllParams) IsNil() bool {
return p == (OrderCancelAllParams{})
}
@@ -489,7 +489,7 @@ func (p OrderAmendBulkParams) ToURLVals(path string) (string, error) {
return "", nil
}
// IsNil checks to see if any values has been set for the paramater
// IsNil checks to see if any values has been set for the parameter
func (p OrderAmendBulkParams) IsNil() bool {
return len(p.Orders) == 0
}
@@ -511,7 +511,7 @@ func (p OrderNewBulkParams) ToURLVals(path string) (string, error) {
return "", nil
}
// IsNil checks to see if any values has been set for the paramater
// IsNil checks to see if any values has been set for the parameter
func (p OrderNewBulkParams) IsNil() bool {
return len(p.Orders) == 0
}
@@ -534,7 +534,7 @@ func (p OrderCancelAllAfterParams) ToURLVals(path string) (string, error) {
return "", nil
}
// IsNil checks to see if any values has been set for the paramater
// IsNil checks to see if any values has been set for the parameter
func (p OrderCancelAllAfterParams) IsNil() bool {
return p == (OrderCancelAllAfterParams{})
}
@@ -560,7 +560,7 @@ func (p OrderClosePositionParams) ToURLVals(path string) (string, error) {
return "", nil
}
// IsNil checks to see if any values has been set for the paramater
// IsNil checks to see if any values has been set for the parameter
func (p OrderClosePositionParams) IsNil() bool {
return p == (OrderClosePositionParams{})
}
@@ -590,7 +590,7 @@ func (p OrderBookGetL2Params) ToURLVals(path string) (string, error) {
return common.EncodeURLValues(path, values), nil
}
// IsNil checks to see if any values has been set for the paramater
// IsNil checks to see if any values has been set for the parameter
func (p OrderBookGetL2Params) IsNil() bool {
return p == (OrderBookGetL2Params{})
}
@@ -619,7 +619,7 @@ func (p PositionGetParams) ToURLVals(path string) (string, error) {
return "", nil
}
// IsNil checks to see if any values has been set for the paramater
// IsNil checks to see if any values has been set for the parameter
func (p PositionGetParams) IsNil() bool {
return p == (PositionGetParams{})
}
@@ -645,7 +645,7 @@ func (p PositionIsolateMarginParams) ToURLVals(path string) (string, error) {
return "", nil
}
// IsNil checks to see if any values has been set for the paramater
// IsNil checks to see if any values has been set for the parameter
func (p PositionIsolateMarginParams) IsNil() bool {
return p == (PositionIsolateMarginParams{})
}
@@ -672,7 +672,7 @@ func (p PositionUpdateLeverageParams) ToURLVals(path string) (string, error) {
return "", nil
}
// IsNil checks to see if any values has been set for the paramater
// IsNil checks to see if any values has been set for the parameter
func (p PositionUpdateLeverageParams) IsNil() bool {
return p == (PositionUpdateLeverageParams{})
}
@@ -698,7 +698,7 @@ func (p PositionUpdateRiskLimitParams) ToURLVals(path string) (string, error) {
return "", nil
}
// IsNil checks to see if any values has been set for the paramater
// IsNil checks to see if any values has been set for the parameter
func (p PositionUpdateRiskLimitParams) IsNil() bool {
return p == (PositionUpdateRiskLimitParams{})
}
@@ -724,7 +724,7 @@ func (p PositionTransferIsolatedMarginParams) ToURLVals(path string) (string, er
return "", nil
}
// IsNil checks to see if any values has been set for the paramater
// IsNil checks to see if any values has been set for the parameter
func (p PositionTransferIsolatedMarginParams) IsNil() bool {
return p == (PositionTransferIsolatedMarginParams{})
}
@@ -784,7 +784,7 @@ func (p *QuoteGetBucketedParams) ToURLVals(path string) (string, error) {
return "", nil
}
// IsNil checks to see if any values has been set for the paramater
// IsNil checks to see if any values has been set for the parameter
func (p *QuoteGetBucketedParams) IsNil() bool {
return *p == (QuoteGetBucketedParams{})
}
@@ -845,7 +845,7 @@ func (p *TradeGetBucketedParams) ToURLVals(path string) (string, error) {
return "", nil
}
// IsNil checks to see if any values has been set for the paramater
// IsNil checks to see if any values has been set for the parameter
func (p *TradeGetBucketedParams) IsNil() bool {
return *p == (TradeGetBucketedParams{})
}
@@ -882,7 +882,7 @@ func (p *UserUpdateParams) ToURLVals(path string) (string, error) {
return "", nil
}
// IsNil checks to see if any values has been set for the paramater
// IsNil checks to see if any values has been set for the parameter
func (p *UserUpdateParams) IsNil() bool {
return *p == (UserUpdateParams{})
}
@@ -903,7 +903,7 @@ func (p UserTokenParams) ToURLVals(path string) (string, error) {
return "", nil
}
// IsNil checks to see if any values has been set for the paramater
// IsNil checks to see if any values has been set for the parameter
func (p UserTokenParams) IsNil() bool {
return p == (UserTokenParams{})
}
@@ -925,7 +925,7 @@ func (p UserCheckReferralCodeParams) ToURLVals(path string) (string, error) {
return "", nil
}
// IsNil checks to see if any values has been set for the paramater
// IsNil checks to see if any values has been set for the parameter
func (p UserCheckReferralCodeParams) IsNil() bool {
return p == (UserCheckReferralCodeParams{})
}
@@ -951,7 +951,7 @@ func (p UserConfirmTFAParams) ToURLVals(path string) (string, error) {
return "", nil
}
// IsNil checks to see if any values has been set for the paramater
// IsNil checks to see if any values has been set for the parameter
func (p UserConfirmTFAParams) IsNil() bool {
return p == (UserConfirmTFAParams{})
}
@@ -972,7 +972,7 @@ func (p UserCurrencyParams) ToURLVals(path string) (string, error) {
return "", nil
}
// IsNil checks to see if any values has been set for the paramater
// IsNil checks to see if any values has been set for the parameter
func (p UserCurrencyParams) IsNil() bool {
return p == (UserCurrencyParams{})
}
@@ -997,7 +997,7 @@ func (p UserPreferencesParams) ToURLVals(path string) (string, error) {
return "", nil
}
// IsNil checks to see if any values has been set for the paramater
// IsNil checks to see if any values has been set for the parameter
func (p UserPreferencesParams) IsNil() bool {
return p == (UserPreferencesParams{})
}
@@ -1034,7 +1034,7 @@ func (p UserRequestWithdrawalParams) ToURLVals(path string) (string, error) {
return "", nil
}
// IsNil checks to see if any values has been set for the paramater
// IsNil checks to see if any values has been set for the parameter
func (p UserRequestWithdrawalParams) IsNil() bool {
return p == (UserRequestWithdrawalParams{})
}
@@ -1062,7 +1062,7 @@ func (p *OrdersRequest) ToURLVals(path string) (string, error) {
return "", nil
}
// IsNil checks to see if any values has been set for the paramater
// IsNil checks to see if any values has been set for the parameter
func (p *OrdersRequest) IsNil() bool {
return *p == (OrdersRequest{})
}