-
Bug
-
Resolution: Not A Defect
-
Minor
-
None
-
Jenkins 1.4.3.4 cppcheck 1.0.2 CentOS 5.7 Java 1.6.0_20
The cppcheck plugin replaces spaces in a file name specification with '%20'. This results in a "file doesn't exist on slave warning" and the ability to drill down to the source code is lost from the cppcheck results page in Jenkins.
E.g. (Look at the dir between MiniWss100 and SOURCE):
[Cppcheck] [WARNING] - The source file 'file:/build/workspace/MiniWss100_cppcheck/MiniWss100/MiniWss100/TI%206713/SOURCE/C6713_AD5623R_Driver.c' doesn't exist on the slave. The ability to display its source code has been removed.
Corresponding line from cppcheck-result.xml is (note the space in the "TI 6713" directory level):
<error file="./MiniWss100/TI 6713/SOURCE/C6713_AD5623R_Driver.c" id="s_nonIntArrayIndex" line="343" msg="Array fetch usi
ng non-integer, U8_t: spi_ref_table[my_dac_id]" severity="style"/>
Oddly, we don't see this problem on our production server running an older Hudson installation 1.322 and cppcheck plugin 1.0.0, Java version 1.6.0_07-b06. I didn't find anything in cppcheck v1.0.1 or v1.0.2 that suggests something was changed that would cause this.