As of now, we are on sonarqube 4.5.7 and are using below plugin for c files.
C (Community) [cxx] 0.9.2
Recently we integrated fortify functionality with sonar and all the relevant fortify xml's were read by sonar.We could see Fortify Repository now being shown if we search in Rules tab. However it was noticed that Fortify C repository wasn't added although core_cpp.xml and extended_cpp.xml files were present in the relevant fortify folder.
While trying for various alternatives I did changed the language="cpp" to language="c " in both core_cpp.xml amd extended_cpp.xml. Henceforth restarted the sonar server and Fortify c repository was available with 460 Blocker rules.
Please guide if this workaround is correct or am I missing something in this case ?