I have a project with platform files (like CMSIS, etc) being part of the project - for various reasons!
Those files are included as instructed by
build_flags = -I src/CMSIS.
When I use cppcheck with misra I am getting hundreds of warnings originating from the CMSIS and others that are not user code.
When I run
pio check -v, I can see all the Includes being listed. I don’t want any of them - per the manual:
How can I remove arbitrary or all the includes? I can only add new ones using check_flags. It would be best if that
check_flags = cppcheck: --I xxxxx command was replacing the Includes, instead of adding to them.