Skip to content

Commit dfe005f

Browse files
authored
Refactor CI workflow (#24)
Removed trailing whitespace check and updated cppcheck suppressions. Signed-off-by: Lorenzo Mangani <lorenzo.mangani@gmail.com>
1 parent 5865687 commit dfe005f

1 file changed

Lines changed: 7 additions & 10 deletions

File tree

.github/workflows/ci-build.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,6 @@ jobs:
5353
sudo apt-get update -qq
5454
sudo apt-get install -y -qq clang-format clang-tidy cppcheck
5555
56-
- name: Check trailing whitespace
57-
continue-on-error: true
58-
run: |
59-
if grep -rIn --exclude-dir=.git --exclude="*.md,*.log" "[[:blank:]]$" .; then
60-
echo "Trailing whitespace detected!"
61-
exit 1
62-
fi
63-
6456
- name: Run clang-format (check mode)
6557
run: |
6658
find . \
@@ -72,9 +64,14 @@ jobs:
7264
run: |
7365
cppcheck --enable=all --error-exitcode=1 --inline-suppr \
7466
--suppress=missingIncludeSystem \
75-
--suppress=unusedFunction \
7667
--suppress=missingInclude \
7768
--suppress=cstyleCast \
7869
--suppress=constVariable \
79-
-i ggml -i build -i .git \
70+
--suppress=constVariablePointer \
71+
--suppress=constParameterPointer \
72+
--suppress=variableScope \
73+
--suppress=uselessCallsSubstr \
74+
--suppress=useStlAlgorithm \
75+
--suppress=shiftNegativeLHS \
76+
-i ggml -i build -i .git -i mp3 \
8077
.

0 commit comments

Comments
 (0)