I am running the Platformio static checking using pio check --skip-packages -e esp32
and files in .pio/libdeps are being included in the output and polluting it (it’s surprising how many warnings these libraries have!).
My platformio.ini is:
[platformio]
[env] ;Common is done for all environments
monitor_speed = 115200
monitor_flags= --raw
lib_extra_dirs =
./shared-config
lib_deps =
bblanchon/ArduinoJson @ ^6.17.2
adafruit/Adafruit ADS1X15 @ ^1.1.1
adafruit/Adafruit MCP4728 @ ^1.0.7
adafruit/Adafruit NeoPixel @ ^1.7.0
arduino-libraries/NTPClient @ ^3.1.0
test_build_project_src = true ;The test protocol will build the contents of the src folder when running tests. Allows us to test functions inside src
; ==== STATIC CHECKING ====
check_tool = cppcheck ; pvs-studio, cppcheck, clangtidy
check_flags =
cppcheck: --enable=all
cppcheck: --inline-suppr
cppcheck: --suppress=*:.pio/*
[extra]
extra_scripts_default =
shared/moveOutputBinaries.py
build_flags_default =
-DDEBUG_ESP_PORT=Serial
-DDEBUG_BUILD
-DWEBSOCKET_DISABLED
!python shared/GetCurrentDateTime.py
!python shared/GetGitHash.py
;==========ESP32===========
[env:esp32]
platform = espressif32
board = esp32dev
framework = arduino
build_type = debug
debug_tool = esp-prog
; monitor_filters = esp32_exception_decoder
build_flags =
${extra.build_flags_default}
extra_scripts = ${extra.extra_scripts_default}
debug_init_break = tbreak setup
I have also tried including check_flags = cppcheck: --suppress=*:.pio/*
but that doesn’t work.
Is there something I’m doing wrong?