Master:
java version "1.7.0_55"
OpenJDK Runtime Environment (rhel-2.4.7.1.el6_5-x86_64 u55-b13)
OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)
Example slave:
java version "1.6.0_41"
Java(TM) SE Runtime Environment (build 1.6.0_41-b02)
Java HotSpot(TM) 64-Bit Server VM (build 20.14-b01, mixed mode)
Cppcheck 1.57
Other slave with same problem (on different jobs):
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)
Cppcheck 1.61
Cppcheck command:
cppcheck -i$PATH1 -i$PATH2 -i$PATH3 --xml --enable=style -j 2 $PATH4 2> cppcheck-int.xml
xsltproc cppcheck.xslt cppcheck-int.xml > cppcheck-result.xml
The XSLT is changing some "style" issues to "warning" and "performance". According to comments, this is because the --xml option changed everything that wasn't an "error" into "style". I can't see a logical reason why this would affect your plugin.
I'll try upgrading cppcheck and look at the options you recommend. This may prove the XSLT to be unnecessary and fix the count issue as well.
If that doesn't help, I'll try the test jobs you asked for.
Not fixed as far as I can see in 1.18
I have a report with 1 "error", 93 "warning", 56 "performance" and 152 "style" rows.
However, the summary table lists 0 for "Warning" and "Performance", and 149 for "No category".
The Advanced configuration is unchanged from the default, with no thresholds and all boxes ticked.