Skip to content

Commit 2b5a1f3

Browse files
add codespell scan
Signed-off-by: kluszcze <[email protected]>
1 parent 0c75171 commit 2b5a1f3

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/scripts/codespell.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
set -ex
4+
5+
SCAN_RESULT=`codespell -H --quiet-level=3 --skip="*.h,*.cmake,*.c,*.hpp,*.cpp,*.sh,*.py,test/supp/*.supp,./.venv" --ignore-words-list="ASSER,Tne,ba,BA"`
6+
echo -e "${SCAN_RESULT}"

.github/workflows/reusable_checks.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
python3 -m venv .venv
3030
. .venv/bin/activate
3131
echo "$PATH" >> $GITHUB_PATH
32-
python3 -m pip install bandit
32+
python3 -m pip install bandit codespell
3333
3434
- name: Configure CMake
3535
run: >
@@ -57,6 +57,9 @@ jobs:
5757
with:
5858
config: ./.github/workflows/.spellcheck-conf.toml
5959

60+
- name: Run codespell
61+
run: |
62+
bash .github/scripts/codespell.sh
6063
# Run Bandit recursively, but omit _deps directory (with 3rd party code) and python's venv
6164
- name: Run Bandit
6265
run: python3 -m bandit -r . -x '/_deps/,/.venv/'

0 commit comments

Comments
 (0)