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!).
Still can’t quite figure it out, it is a bit strange though since only some of the libraries from .pio are being included. Like the ADS1x15 package has so many problems with it but is not included in the output.
Hi @fr1 ! I guess the warnings are from header files? The reason you see that defects is because headers from that libraries are included somewhere in your main code. Cppecheck analyzes code on the level of translation units which means that headers and macros are expanded (including those from external libs). It seems that they should be suppressed according to your check flags, but I have some doubts about your syntax:
It looks like all on one line vs separate lines didn’t make a difference but I found the problem. I was referencing it relative to my project root: --suppress=*:.pio/* but changing it to --suppress=*:*/.pio/* has fixed it.
Thanks for your help, making it a one-liner has made .ini look a bit cleaner at least
This outputs the linting issues within src without including those from .pio. But… I’d really like to keep all my linting within the realm of pio check. Surely there must be a way to configure my platformio.ini to omit ANY linting issues from .pio, right?