From c97ff63eb7ba0811efdac3bf8910297dbb8a5562 Mon Sep 17 00:00:00 2001 From: SChernykh <15806605+SChernykh@users.noreply.github.com> Date: Mon, 3 Feb 2025 14:20:15 +0100 Subject: [PATCH] CI: re-enabled cppcheck-ubuntu with faster parameters --- .github/workflows/cppcheck.yml | 3 +-- cppcheck/run.sh | 2 +- cppcheck/suppressions.txt | 1 + 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cppcheck.yml b/.github/workflows/cppcheck.yml index 635c4cf4..aba94441 100644 --- a/.github/workflows/cppcheck.yml +++ b/.github/workflows/cppcheck.yml @@ -15,7 +15,6 @@ on: jobs: cppcheck-ubuntu: - if: false timeout-minutes: 240 runs-on: ubuntu-latest @@ -40,7 +39,7 @@ jobs: run: | mkdir build cd build - cmake .. -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DSTATIC_LIBS=ON + cmake .. -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DSTATIC_LIBS=ON -DWITH_GRPC=OFF python ../cppcheck/remove_external.py compile_commands.json - name: Run cppcheck diff --git a/cppcheck/run.sh b/cppcheck/run.sh index 09084346..cf193852 100755 --- a/cppcheck/run.sh +++ b/cppcheck/run.sh @@ -1,5 +1,5 @@ #!/bin/bash -../cppcheck-main/cppcheck --project=../build/compile_commands.json -D__cppcheck__ -DSIZE_MAX=UINT64_MAX -DRAPIDJSON_ENDIAN=RAPIDJSON_LITTLEENDIAN -DRAPIDJSON_64BIT=1 -D__SSE2__=1 -D__BYTE_ORDER__=1 -D__ORDER_LITTLE_ENDIAN__=1 -D__linux__=1 -D__x86_64 -D_M_AMD64 -D_M_X64 --platform=unix64 --std=c++17 --enable=all --inconclusive --inline-suppr --template="{file}:{line}:{id}{inconclusive: INCONCLUSIVE} {message}" --suppressions-list=suppressions.txt --output-file=errors_full.txt --max-ctu-depth=3 --check-level=exhaustive --checkers-report=checkers_report.txt +../cppcheck-main/cppcheck --project=../build/compile_commands.json -D__cppcheck__ -DSIZE_MAX=UINT64_MAX -DRAPIDJSON_ENDIAN=RAPIDJSON_LITTLEENDIAN -DRAPIDJSON_64BIT=1 -D__SSE2__=1 -D__BYTE_ORDER__=1 -D__ORDER_LITTLE_ENDIAN__=1 -D__linux__=1 -D__x86_64 -D_M_AMD64 -D_M_X64 --platform=unix64 --std=c++17 --enable=all --inconclusive --inline-suppr --template="{file}:{line}:{id}{inconclusive: INCONCLUSIVE} {message}" --suppressions-list=suppressions.txt --output-file=errors_full.txt --checkers-report=checkers_report.txt grep -v 'external' errors_full.txt > errors_filtered0.txt grep -v ':checkersReport' errors_filtered0.txt > errors_filtered.txt diff --git a/cppcheck/suppressions.txt b/cppcheck/suppressions.txt index 9cc73200..18b4f32e 100644 --- a/cppcheck/suppressions.txt +++ b/cppcheck/suppressions.txt @@ -2,3 +2,4 @@ unmatchedSuppression missingIncludeSystem unusedFunction useStlAlgorithm +normalCheckLevelMaxBranches