From b9c4c2bea0b79154a50c812c85145f237df1613f Mon Sep 17 00:00:00 2001 From: SuperQ Date: Thu, 15 Jun 2023 11:14:53 +0200 Subject: [PATCH] Use golangci-lint for codespell * Remove Python codespell check. * Enable misspell golanci-lint linter. Signed-off-by: SuperQ --- .circleci/config.yml | 10 ---------- .golangci.yml | 3 +++ scripts/codespell_ignore.txt | 11 ----------- 3 files changed, 3 insertions(+), 21 deletions(-) delete mode 100644 scripts/codespell_ignore.txt diff --git a/.circleci/config.yml b/.circleci/config.yml index 25a6795ed..d53e45521 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -35,15 +35,6 @@ jobs: steps: - run: make test - codespell: - docker: - - image: circleci/python - - steps: - - checkout - - run: sudo pip install codespell - - run: codespell --skip=".git,./vendor,ttar,fixtures.ttar,./fixtures,go.mod,go.sum" -I scripts/codespell_ignore.txt - workflows: version: 2 procfs: @@ -66,4 +57,3 @@ workflows: go_version: - "1.19" - "1.20" - - codespell diff --git a/.golangci.yml b/.golangci.yml index a197699a1..c24864a92 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -2,6 +2,7 @@ linters: enable: - godot + - misspell - revive linter-settings: @@ -10,3 +11,5 @@ linter-settings: exclude: # Ignore "See: URL" - 'See:' + misspell: + locale: US diff --git a/scripts/codespell_ignore.txt b/scripts/codespell_ignore.txt deleted file mode 100644 index 4b41a2391..000000000 --- a/scripts/codespell_ignore.txt +++ /dev/null @@ -1,11 +0,0 @@ -alo -als -ded -hart -hda -inflight -packages\' -ro -sie -te -uint