Skip to content

Commit 3981b22

Browse files
pdgendtcarlescufi
authored andcommitted
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>
1 parent 493cc9d commit 3981b22

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.codechecker.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
#
3+
# Copyright (c) 2024, Basalte bv
4+
5+
analyzer:
6+
# Start by disabling all
7+
- --disable-all
8+
9+
# Enable the sensitive profile
10+
- --enable=sensitive
11+
12+
# Disable unused cases
13+
- --disable=boost
14+
- --disable=mpi
15+
16+
# Many identifiers in zephyr start with _
17+
- --disable=clang-diagnostic-reserved-identifier
18+
- --disable=clang-diagnostic-reserved-macro-identifier
19+
20+
# Cleanup
21+
- --clean

0 commit comments

Comments
 (0)