Hi Team
we want to import our cppcheck results to sonarqube. we installed sonarcxx plugin in sonarqube and able to display cppcheck results. But i have a doubt when we checked with cppcheck xml file we found the error message last line in xml report file. what is this error message mean, do i need to take any action on this?
we used cppcheck --xml-version=2 . 2> report.xml this command to generate .xml file.
we are using cppcheck -1.63. we need your advice to resolve.
<error id="toomanyconfigs" severity="information" msg="Too many #ifdef configurations - cppcheck only checks 12 configurations. Use --force to check all configurations. For more details, use --enable=information." verbose="The checking of the file will be interrupted because there are too many #ifdef configurations. Checking of all #ifdef configurations can be forced by --force command line option or from GUI preferences. However that may increase the checking time. For more details, use --enable=information."></error>
That is very old , from 2014, you should really upgrade.
Too many #ifdef configurations - cppcheck only checks 12 configurations.
That is not a huge problem. Personally I would wonder why there are 12 configurations.. do you actually use all those configurations.. if you use all those then --force would be a good idea, if you don't use them maybe it would be best to configure the analysis a bit better.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
ok let's try to solve that AIX issue. I would be very interested to know why it doesn't work on AIX. I guess it would be much easier if I could somehow reproduce your problems.. but I don't see how I can test AIX. If you have a suggestion..
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Team
we want to import our cppcheck results to sonarqube. we installed sonarcxx plugin in sonarqube and able to display cppcheck results. But i have a doubt when we checked with cppcheck xml file we found the error message last line in xml report file. what is this error message mean, do i need to take any action on this?
we used cppcheck --xml-version=2 . 2> report.xml this command to generate .xml file.
we are using cppcheck -1.63. we need your advice to resolve.
<error id="toomanyconfigs" severity="information" msg="Too many #ifdef configurations - cppcheck only checks 12 configurations. Use --force to check all configurations. For more details, use --enable=information." verbose="The checking of the file will be interrupted because there are too many #ifdef configurations. Checking of all #ifdef configurations can be forced by --force command line option or from GUI preferences. However that may increase the checking time. For more details, use --enable=information."></error>
Sonar output:
That is very old , from 2014, you should really upgrade.
That is not a huge problem. Personally I would wonder why there are 12 configurations.. do you actually use all those configurations.. if you use all those then --force would be a good idea, if you don't use them maybe it would be best to configure the analysis a bit better.
Hi Daniel,
chaitanya is working on the same project as I do. We use version 1.63 because there is no newer build for AIX and we are unable to build a newer version as described here: https://sourceforge.net/p/cppcheck/discussion/general/thread/8c4d149fe5/
ok let's try to solve that AIX issue. I would be very interested to know why it doesn't work on AIX. I guess it would be much easier if I could somehow reproduce your problems.. but I don't see how I can test AIX. If you have a suggestion..