Browse Source

tests: Add a CodeChecker config file

Create a file to be used in CI or locally that lists all enabled/disabled
checks.

Can be passed as a CMake argument or set as environment variable:
CODECHECKER_CONFIG_FILE=$ZEPHYR_BASE/tests/codechecker_config.yaml

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
pull/77806/head
Pieter De Gendt 11 months ago committed by Carles Cufí
parent
commit
3981b22845
  1. 21
      .codechecker.yml

21
.codechecker.yml

@ -0,0 +1,21 @@
# SPDX-License-Identifier: Apache-2.0
#
# Copyright (c) 2024, Basalte bv
analyzer:
# Start by disabling all
- --disable-all
# Enable the sensitive profile
- --enable=sensitive
# Disable unused cases
- --disable=boost
- --disable=mpi
# Many identifiers in zephyr start with _
- --disable=clang-diagnostic-reserved-identifier
- --disable=clang-diagnostic-reserved-macro-identifier
# Cleanup
- --clean
Loading…
Cancel
Save