Since version 1.88 there is a possibility to run addons directly from cppcheck by using --addon option. I tried today to use it with namingng.py addon, but when I typed following command:
It is seems to me that propably cppcheck doesn't attach path to generated .dump file. However if I understand cppcheck manual right, it should:
9.1 Running Addons
Addons are standalone scripts that are executed separately.
To manually run an addon:
cppcheck --dump somefile.c
python misc.py somefile.c.dump
To run the same addon through Cppcheck directly:
cppcheck --addon=misc.py somefile.c
Could you tell me, how to correctly run this addon?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Since version 1.88 there is a possibility to run addons directly from cppcheck by using --addon option. I tried today to use it with namingng.py addon, but when I typed following command:
I received error message:
It is seems to me that propably cppcheck doesn't attach path to generated .dump file. However if I understand cppcheck manual right, it should:
Could you tell me, how to correctly run this addon?
oh.. this addon does not handle
--cli
. So it cannot be executed directly. :-( We need to fix that.That argument tells the addons to output the results in JSON format so Cppcheck can parse it easily.
ok, I have to deal with it manually then. Thanks.