Debian Codegraph @

tools/ci/qa.sh

raw symbols SCIP
1 #!/bin/bash
2 #
3 # Copyright (C) 2024 Linutronix GmbH
4 # Author Kurt Kanzenbach <[email protected]>
5 #
6 # SPDX-License-Identifier: BSD-2-Clause
7 #
8 # Check coding style.
9 #
10
11 set -e
12
13 cd $(dirname $0)
14
15 pushd ../..
16
17 echo "Checking licenses/copyrights..."
18 reuse lint
19
20 echo "Checking coding style with clang-format ..."
21 clang-format --Werror --dry-run src/*.c src/*.h
22
23 echo "Checking naming style with clang-tidy ..."
24 mkdir build
25 pushd build
26 cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ..
27 make -j$(nproc)
28 run-clang-tidy
29 popd
30 rm -rf build
31
32 popd
33
34 exit 0