From 49a1e42efd10ffb00f4f7f454e6b806386894f99 Mon Sep 17 00:00:00 2001 From: Carter Li Date: Thu, 18 Jun 2026 13:28:07 +0800 Subject: [PATCH] CI: updates spellcheck --- .codespellrc | 4 ++-- .github/workflows/build-spellcheck.yml | 7 ++----- src/common/impl/processing_linux.c | 2 +- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/.codespellrc b/.codespellrc index a3f78472f..54fbbaa78 100644 --- a/.codespellrc +++ b/.codespellrc @@ -1,5 +1,5 @@ [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.* -ignore-words-list = iterm,compiletime,unknwn,pengwin,siduction,master,slave,sur,doas,conexant,ags,bu,renderD +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_* +ignore-words-list = iterm,compiletime,unknwn,pengwin,siduction,master,slave,sur,doas,conexant,ags,bu,renderD,SME,Carmel,kinda diff --git a/.github/workflows/build-spellcheck.yml b/.github/workflows/build-spellcheck.yml index ca675285f..7887227b8 100644 --- a/.github/workflows/build-spellcheck.yml +++ b/.github/workflows/build-spellcheck.yml @@ -3,9 +3,6 @@ name: Reusable Spellcheck on: workflow_call: -env: - CMAKE_BUILD_TYPE: ${{ vars.CMAKE_BUILD_TYPE || 'RelWithDebInfo' }} - jobs: spellcheck: runs-on: ubuntu-latest @@ -17,8 +14,8 @@ jobs: - name: Install codespell shell: bash run: | - sudo apt-get update || true - sudo apt-get install -y codespell + pip3 install codespell + codespell --version - name: Run Spellchecker run: codespell diff --git a/src/common/impl/processing_linux.c b/src/common/impl/processing_linux.c index 06524f729..828d4846d 100644 --- a/src/common/impl/processing_linux.c +++ b/src/common/impl/processing_linux.c @@ -546,7 +546,7 @@ const char* ffProcessGetBasicInfoLinux(pid_t pid, FFstrbuf* name, pid_t* ppid, i return "sysctl(KERN_PROC_PID) failed"; } - ffStrbufSetS(name, proc.kp_proc.p_comm); // trancated to 16 chars + ffStrbufSetS(name, proc.kp_proc.p_comm); // truncated to 16 chars if (ppid) { *ppid = (pid_t) proc.kp_eproc.e_ppid; }