PlatformIO Community

Different patterns for different check tools

Is there any way to have a different set of patterns for each check tool? There’s a directory I want to exclude for cppcheck but include for clangtidy.

Our project uses googletest and the include directives to it in our test code seem to be telling cppcheck to look through the googletest files in the .pio directory, which we don’t want to check in CI.

I tried adding --suppress=*:dir-to-exclude to the check flags for cppcheck, but it doesn’t seem to be respecting it. Any ideas?