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

@@ -600,7 +600,7 @@ func (b *BTSE) calculateTradingFee(ctx context.Context, feeBuilder *exchange.Fee
}
feeTiers, err := b.GetFeeInformation(ctx, formattedPair.String())
if err != nil {
// TODO: Return actual error, we should't pivot around errors.
// TODO: Return actual error, we shouldn't pivot around errors.
if feeBuilder.IsMaker {
return 0.001
}

View File

@@ -711,7 +711,7 @@ func TestStatusToStandardStatus(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)
}
}
}

View File

@@ -706,7 +706,7 @@ func (b *BTSE) GetDepositAddress(ctx context.Context, c currency.Code, accountID
return nil, err
}
exctractor := func(addr string) (string, string) {
extractor := func(addr string) (string, string) {
if strings.Contains(addr, ":") {
split := strings.Split(addr, ":")
return split[0], split[1]
@@ -720,7 +720,7 @@ func (b *BTSE) GetDepositAddress(ctx context.Context, c currency.Code, accountID
return nil, err
}
if len(addressCreate) != 0 {
addr, tag := exctractor(addressCreate[0].Address)
addr, tag := extractor(addressCreate[0].Address)
return &deposit.Address{
Address: addr,
Tag: tag,
@@ -728,7 +728,7 @@ func (b *BTSE) GetDepositAddress(ctx context.Context, c currency.Code, accountID
}
return nil, errors.New("address not found")
}
addr, tag := exctractor(address[0].Address)
addr, tag := extractor(address[0].Address)
return &deposit.Address{
Address: addr,
Tag: tag,