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

@@ -33,6 +33,6 @@ func TestConstructRuntimeError(t *testing.T) {
t.Parallel()
err := constructRuntimeError(0, "", "", nil)
if !errors.Is(err, common.ErrTypeAssertFailure) {
t.Fatalf("receieved: '%v' but expected: '%v'", err, common.ErrTypeAssertFailure)
t.Fatalf("received: '%v' but expected: '%v'", err, common.ErrTypeAssertFailure)
}
}

View File

@@ -47,7 +47,7 @@ func ParseIndicatorSelector(in string) (int, error) {
}
}
// ParseMAType returns moving average from sring
// ParseMAType returns moving average from string
func ParseMAType(in string) (indicators.MaType, error) {
in = strings.ToLower(in)
switch in {