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

@@ -19,7 +19,7 @@ import (
const (
localbitcoinsAPIURL = "https://localbitcoins.com"
// Autheticated Calls
// Authenticated Calls
localbitcoinsAPIAccountInfo = "api/account_info"
localbitcoinsAPIMyself = "myself/"
localbitcoinsAPIAds = "ads/"

View File

@@ -83,7 +83,7 @@ type AdData struct {
AdCount int `json:"ad_count"`
}
// AdEdit references an outgoing paramater type for EditAd() method
// AdEdit references an outgoing parameter type for EditAd() method
type AdEdit struct {
// Required Arguments
PriceEquation string `json:"price_equation"`
@@ -123,7 +123,7 @@ type AdEdit struct {
Floating bool `json:"floating"`
}
// AdCreate references an outgoing paramater type for CreateAd() method
// AdCreate references an outgoing parameter type for CreateAd() method
type AdCreate struct {
// Required Arguments
PriceEquation string `json:"price_equation"`

View File

@@ -30,7 +30,7 @@ func (r *RateLimit) Limit(f request.EndpointLimit) error {
func SetRateLimit() *RateLimit {
return &RateLimit{
// 4 seconds per book fetching is the best time frame to actually
// receive without retying. There is undocumentated rate limit.
// receive without retrying. There is undocumentated rate limit.
Orderbook: request.NewRateLimit(4*time.Second, 1),
Ticker: request.NewRateLimit(time.Second, 1),
}