Skip to content

Commit c69fc44

Browse files
committed
chore: update .gitignore and cppcheck suppressions
- Add cppcheck-report.txt to .gitignore to avoid tracking analysis reports - Update suppression paths for libintraFont and libpspmath in .cppcheck-suppress
1 parent 79256fd commit c69fc44

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

‎.cppcheck-suppress‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
# Third-party libraries that we don't modify
55
*:lib/giflib/*
6-
*:src/intraFont/*
7-
*:src/libpspmath/*
6+
*:lib/libintraFont/*
7+
*:lib/libpspmath/*
88

99
# Third-party headers (PNG, zlib, etc.)
1010
*:src/png.h

‎.gitignore‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,6 @@ install_manifest.txt
3131
cmake_install.cmake
3232
CMakeFiles/
3333
CMakeCache.txt
34+
35+
# cppcheck output
36+
cppcheck-report.txt

‎CMakeLists.txt‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,12 @@ if(CPPCHECK)
204204
set(CPPCHECK_COMMAND
205205
${CPPCHECK} --enable=all --inconclusive --quiet
206206
--suppressions-list=${CMAKE_SOURCE_DIR}/.cppcheck-suppress
207+
--checkers-report=${CMAKE_SOURCE_DIR}/cppcheck-report.txt
207208
)
208209
add_custom_target(
209210
cppcheck
210-
COMMAND ${CPPCHECK_COMMAND} ${CMAKE_SOURCE_DIR}/src
211-
COMMENT "Running Cppcheck..."
211+
COMMAND ${CPPCHECK_COMMAND} ${CMAKE_SOURCE_DIR}/src || true
212+
COMMENT "Running Cppcheck and generating checkers report..."
212213
)
213214
else()
214215
message(WARNING "Cppcheck not found, skipping static analysis.")

0 commit comments

Comments
 (0)