From 892de217a38389a88f12f0ed49ce35fc16ea7329 Mon Sep 17 00:00:00 2001 From: SuperQ Date: Sat, 24 Sep 2022 16:31:54 +0200 Subject: [PATCH] Update codespell Switch to ignore file, update with new ignores. Signed-off-by: SuperQ --- .circleci/config.yml | 2 +- proc_psi_test.go | 2 +- scripts/codespell_ignore.txt | 11 +++++++++++ 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 scripts/codespell_ignore.txt diff --git a/.circleci/config.yml b/.circleci/config.yml index 7e58263b2..70d3887f2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -41,7 +41,7 @@ jobs: steps: - checkout - run: sudo pip install codespell - - run: codespell --skip=".git,./vendor,ttar,fixtures.ttar,./fixtures,go.mod,go.sum" -L uint,packages\',ded,alo,als,te,sie,hart,hda + - run: codespell --skip=".git,./vendor,ttar,fixtures.ttar,./fixtures,go.mod,go.sum" -I scripts/codespell_ignore.txt workflows: version: 2 diff --git a/proc_psi_test.go b/proc_psi_test.go index bd6fb09aa..da674dc2f 100644 --- a/proc_psi_test.go +++ b/proc_psi_test.go @@ -110,7 +110,7 @@ func TestPSIStats(t *testing.T) { // TestParsePSIStats tests the edge cases that we won't run into when running TestPSIStats. func TestParsePSIStats(t *testing.T) { t.Run("unknown measurement type", func(t *testing.T) { - raw := "nonesense haha test=fake" + raw := "nonsense haha test=fake" _, err := parsePSIStats("fake", strings.NewReader(raw)) if err != nil { t.Error("unknown measurement type must be ignored") diff --git a/scripts/codespell_ignore.txt b/scripts/codespell_ignore.txt new file mode 100644 index 000000000..4b41a2391 --- /dev/null +++ b/scripts/codespell_ignore.txt @@ -0,0 +1,11 @@ +alo +als +ded +hart +hda +inflight +packages\' +ro +sie +te +uint