From 3cc4069faa4b6bd6730679ce29d2d3f84a76264f Mon Sep 17 00:00:00 2001 From: Justin Mitchell Date: Tue, 14 Jul 2026 21:37:11 -0400 Subject: [PATCH] fix: suppress cppcheck missingInclude on fresh checkouts On a fresh CI checkout cppcheck has no resolved include paths, so it reports every project header as missing (~400 information-level lines) and --fail-on-defect low fails the job. Suppress it alongside missingIncludeSystem, matching the fix already proven on the BLE branch. --- platformio.ini | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platformio.ini b/platformio.ini index 63174c08..10b72ebe 100644 --- a/platformio.ini +++ b/platformio.ini @@ -13,7 +13,10 @@ framework = arduino monitor_speed = 115200 upload_speed = 921600 check_tool = cppcheck -check_flags = --enable=all --suppress=missingIncludeSystem --suppress=unusedFunction --suppress=unmatchedSuppression --suppress=*:*/.pio/* --inline-suppr +; missingInclude (project headers) is suppressed alongside missingIncludeSystem: on a +; fresh CI checkout cppcheck has no resolved include paths, so it reports every +; project header as missing (~400 information-level lines) and fails the job. +check_flags = --enable=all --suppress=missingIncludeSystem --suppress=missingInclude --suppress=unusedFunction --suppress=unmatchedSuppression --suppress=*:*/.pio/* --inline-suppr check_skip_packages = yes board_upload.flash_size = 16MB