From 9ac38221054c489c6950b196b9b9d191a920b071 Mon Sep 17 00:00:00 2001 From: Carter Li Date: Sat, 3 Oct 2026 18:47:22 +0800 Subject: [PATCH] CI: removes codespell --- .codespellrc | 5 ----- .github/workflows/build-spellcheck.yml | 24 ------------------------ .github/workflows/ci.yml | 6 ------ CONTRIBUTING.md | 5 ----- 4 files changed, 40 deletions(-) delete mode 100644 .codespellrc delete mode 100644 .github/workflows/build-spellcheck.yml diff --git a/.codespellrc b/.codespellrc deleted file mode 100644 index 594f2e5b8..000000000 --- a/.codespellrc +++ /dev/null @@ -1,5 +0,0 @@ -[codespell] -check-filenames = -builtin = clear,rare,usage,informal -skip = */.git,*/cmake-build-*,*/.idea,*/completions,*/presets,*/screenshots,*/tests,*/3rdparty,*/logo/ascii,./src/detection/gpu/asahi_drm.h,./src/detection/cpu/cpu_x86.c,./src/detection/gpu/gpu_bsddrm.c,./src/detection/displayserver/linux/wayland/*-protocol.*,./build,./build-*,./build_*,./src/common/impl/genconfig.c -ignore-words-list = iterm,compiletime,unknwn,pengwin,siduction,master,slave,sur,doas,conexant,ags,bu,renderD,SME,Carmel,kinda,symbole,connexion,comando,processus,lokale,adres,titel,som,environnement,Sistem,Lokal,Lokal,Sistem,Paket,Hava,statics,IIterator,whitelist diff --git a/.github/workflows/build-spellcheck.yml b/.github/workflows/build-spellcheck.yml deleted file mode 100644 index e57c92218..000000000 --- a/.github/workflows/build-spellcheck.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Reusable Spellcheck - -on: - workflow_call: - -permissions: - contents: read - -jobs: - spellcheck: - runs-on: ubuntu-latest - - steps: - - name: checkout repository - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - - name: Install codespell - shell: bash - run: | - pip3 install codespell - codespell --version - - - name: Run Spellchecker - run: codespell diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 16f6ce34c..0c67cfb1b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,13 +5,7 @@ on: - pull_request jobs: - spellcheck: - permissions: - contents: read - uses: ./.github/workflows/build-spellcheck.yml - no-features-test: - needs: spellcheck name: No-features-test permissions: contents: read diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7bf8c3e9c..a88d68721 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -587,10 +587,6 @@ clang-format -i src/modules/foo/*.c src/modules/foo/*.h | Module options | `FFOptions` | `FFCPUOptions` | | Detection results | `FFResult` | `FFCPUResult` | -### Spelling - -CI runs codespell (`.codespellrc`). Known false positives are listed in `ignore-words-list` (`iterm`, `compiletime`, and various non-English distro words). Add new words there rather than changing the code. - ### Compiler warnings The build enables `-Wall -Wextra -Wconversion` plus several `-Werror`s: @@ -707,7 +703,6 @@ Coverage focuses on the core data structures and the formatting engine in `commo ```sh clang-format -i # format -codespell # spelling cmake -B build -DBUILD_TESTS=On && cmake --build build -j cd build && ctest --output-on-failure # tests ./build/fastfetch --format json # verify JSON output is well-formed