My project is organized such that it has a ton of 3rd-party and also Simulink coder files in it. Presently, I can filter those files with -i. But, when I try to also apply MISRA, --addon=misra.py, the addon doesn't produce any output.
-i
--addon=misra.py
This produces no output:
cppcheck --report-progress --project=compile_commands.json --addon=misra.py --enable=all --cppcheck-build-dir=build/compile_commands/cppcheck $(find vehicle/dev/aifcs-autocode -type d -printf " -i%p") -q $(find common/rtos -type d -name src -printf " -i%p") 2>&1 | grep misra
But, this does work (157 -i instances on the command line):
cppcheck --report-progress --project=compile_commands.json --addon=misra.py --enable=all --cppcheck-build-dir=build/compile_commands/cppcheck -q $(find common/rtos -type d -name src -printf " -i%p") 2>&1 | grep misra
Likewise, it works if only ignoring the autocode tree, but that one has fewer -i instances on the command line, anyway.
Is there another way to use the command line to ignore these directories?
Log in to post a comment.
My project is organized such that it has a ton of 3rd-party and also Simulink coder files in it. Presently, I can filter those files with
-i
. But, when I try to also apply MISRA,--addon=misra.py
, the addon doesn't produce any output.This produces no output:
But, this does work (157
-i
instances on the command line):Likewise, it works if only ignoring the autocode tree, but that one has fewer
-i
instances on the command line, anyway.Is there another way to use the command line to ignore these directories?