ci(static_analysis/clang_tidy): turn clang-tidy static analysis back on
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
light7734 2025-09-21 15:37:06 +03:30
parent 85a1bbfcab
commit ca91c5c1d1
Signed by: light7734
GPG key ID: 8C30176798F1A6BA
2 changed files with 6 additions and 10 deletions

View file

@ -2,8 +2,7 @@
set -e set -e
cd $(git rev-parse --show-toplevel)/ cd $(git rev-parse --show-toplevel)/
rm -rf ./build rm -rf ./build && mkdir build/ && cd build
mkdir build/ && cd build
Xvfb :99 -screen 0 1024x768x16 & Xvfb :99 -screen 0 1024x768x16 &
export CXX=$(which g++) export CXX=$(which g++)

View file

@ -2,19 +2,16 @@
set -e set -e
cd $(git rev-parse --show-toplevel)/ cd $(git rev-parse --show-toplevel)/
rm -rf ./build rm -rf ./build && mkdir build/ && cd build
echo 'Static analysis is currently disabled as code is filled with failing clang-tidy checks' export CC=$(which clang)
echo 'Runng this would be a waste of CPU cycles and electricty' export CXX=$(which clang++)
echo 'Fix the checks before removing these lines'
exit 0
cmake .. \ cmake .. \
-G Ninja \ -G Ninja \
-DCMAKE_LINKER_TYPE=MOLD \ -DCMAKE_LINKER_TYPE=MOLD \
-DENABLE_UNIT_TESTS=ON \ -DENABLE_UNIT_TESTS=ON \
-DENABLE_FUZZ_TESTS=ON \ -DENABLE_STATIC_ANALYSIS=ON \
-CMAKE_CXX_CLANG_TIDY=ON \
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_FLAGS="-std=c++23 -stdlib=libc++ -g -fno-omit-frame-pointer" \ -DCMAKE_CXX_FLAGS="-std=c++23 -stdlib=libc++" \
&& cmake --build . -j `nproc` && cmake --build . -j `nproc`