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

@@ -266,17 +266,17 @@ func TestOrderSides(t *testing.T) {
func TestOrderTypes(t *testing.T) {
t.Parallel()
var ot Type
if ot.String() != "UNKNOWN" {
t.Errorf("unexpected string %s", ot.String())
var orderType Type
if orderType.String() != "UNKNOWN" {
t.Errorf("unexpected string %s", orderType.String())
}
if ot.Lower() != "unknown" {
t.Errorf("unexpected string %s", ot.Lower())
if orderType.Lower() != "unknown" {
t.Errorf("unexpected string %s", orderType.Lower())
}
if ot.Title() != "Unknown" {
t.Errorf("unexpected string %s", ot.Title())
if orderType.Title() != "Unknown" {
t.Errorf("unexpected string %s", orderType.Title())
}
}