Skip to content

Commit

Permalink
ci: Exclude tests and tinydtls from scan-build
Browse files Browse the repository at this point in the history
We don't want to check the third-party code of `tinydtls`. Checking the
tests gives a lot of complaints about macros of `CUint` that are not
defined in the context of `scan-build`.
  • Loading branch information
LukasWoodtli committed Feb 10, 2024
1 parent 76b989b commit fc4c431
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tools/ci/run_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,13 @@ if [ -n "${OPT_TEST_COVERAGE_REPORT}" ]; then
fi

if [ -n "${OPT_SCAN_BUILD}" ]; then
# Excluding tests as `scan-build` does not know macros of
# `CUnit` which leads to a lot of noisy issues in the report.
# Also ignoring third-party `tinydtls` library.
OPT_WRAPPER_CMD="${OPT_SCAN_BUILD} \
-o build-wakaama/clang-static-analyzer"
-o build-wakaama/clang-static-analyzer \
--exclude tests \
--exclude examples/shared/tinydtls"
fi

# Run Steps
Expand Down

0 comments on commit fc4c431

Please sign in to comment.