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

@@ -190,7 +190,7 @@ func (g *Gemini) CancelExistingOrder(ctx context.Context, orderID int64) (Order,
// CancelExistingOrders will cancel all outstanding orders created by all
// sessions owned by this account, including interactive orders placed through
// the UI. If sessions = true will only cancel the order that is called on this
// session asssociated with the APIKEY
// session associated with the APIKEY
func (g *Gemini) CancelExistingOrders(ctx context.Context, cancelBySession bool) (OrderResult, error) {
path := geminiOrderCancelAll
if cancelBySession {

View File

@@ -1166,7 +1166,7 @@ func TestResponseToStatus(t *testing.T) {
for i := range testCases {
result, _ := stringToOrderStatus(testCases[i].Case)
if result != testCases[i].Result {
t.Errorf("Exepcted: %v, received: %v", testCases[i].Result, result)
t.Errorf("Expected: %v, received: %v", testCases[i].Result, result)
}
}
}
@@ -1188,7 +1188,7 @@ func TestResponseToOrderType(t *testing.T) {
for i := range testCases {
result, _ := stringToOrderType(testCases[i].Case)
if result != testCases[i].Result {
t.Errorf("Exepcted: %v, received: %v", testCases[i].Result, result)
t.Errorf("Expected: %v, received: %v", testCases[i].Result, result)
}
}
}

View File

@@ -228,7 +228,7 @@ type ErrorCapture struct {
Message string `json:"message"`
}
// WsRequestPayload Request info to subscribe to a WS enpoint
// WsRequestPayload Request info to subscribe to a WS endpoint
type WsRequestPayload struct {
Request string `json:"request"`
Nonce int64 `json:"nonce"`