I am trying to run the kwinject command. The problem is that one of my Makefiles compiles a directory that I do not want to scan, so, is there a way to exclude these files?
I have tried with kwinject --ignore-files {directory-where-makefile-points-at/*}
but it is not working.
Do you guys know if is that possible?
Yes it is possible.
According to kwinject --help
(version 12.0.0.613), the option you should use is defined as:
-I, --ignore-files PATTERN[,PATTERN...]
Thus, you should just write a comma-separated list without any brackets. For example: --ignore-files somefile.c,*/googletest/*
has been working for me when I want to ignore somefile.c and all googletest directories in my workspace.
Macoux Answer worth a try. This should help you achieve your goal.
i would recommend not to ignore the directory from analysis but ignore the results from the report. Here is the procedure to do that, https://developer.klocwork.com/resources/blog/analyze-3rd-party-code-exclude-it-results
if you ignore the directory from analysis then there are high chances that you may end up in missing dependent data flow issues.
Additionally, why do you want to ignore the directory?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With