Debian Codegraph @

tools/ci/qa.sh

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/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 $(dirnamescip-shell system . . dirname. $0)
14
15 pushd ../..
16
17 echoscip-shell system . . echo. "Checking licenses/copyrights..."
18 reuse lint
19
20 echoscip-shell system . . echo. "Checking coding style with clang-format ..."
21 clang-format --Werror --dry-run src/*.c src/*.h
22
23 echoscip-shell system . . echo. "Checking naming style with clang-tidy ..."
24 mkdirscip-shell system . . mkdir. build
25 pushd build
26 cmakescip-shell system . . cmake. -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ..
27 makescip-shell system . . make. -j$(nprocscip-shell system . . nproc.)
28 run-clang-tidy
29 popd
30 rmscip-shell system . . rm. -rf build
31
32 popd
33
34 exit 0