-
Notifications
You must be signed in to change notification settings - Fork 364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sonar read xml file of CppCheck check by MISRA2012;But there is no corresponding misra warning #2587
Comments
Hi @gaolonglong11, please have a look to Only rules listed in the XML file are supported Regards, |
Thank you very much for your reply. I confirm that the XML file generated by cppckeck command contains items that do not conform to MISRA rules, but the format of XML is different from what you said. I would like to ask if there is an xml format conversion tool |
Hi @vscodeenv, for me the resulting XML reports seems to have the same format: https://github.com/SonarOpenCommunity/sonar-cxx/wiki/sonar.cxx.cppcheck.reportPaths#example-of-a-report-file In https://github.com/SonarOpenCommunity/sonar-cxx/blob/master/cxx-sensors/src/main/resources/cppcheck.xml I found the error id: Is the rule enabled in your quality profile? Turn debug information on to get more information: Regards, |
I have checked that the output xml file by cppcheck contains some information about MISRA rules, and sonarqube has also done some Settings through some network tutorials, so I can see some code smells, but there is no corresponding MISR rule conflict prompt, please help me to check whether other places need to be set, thank you very much! Looking forward to your reply! |
I see MISRA rules in the rules created by sonarqube. My sonarqube version is 8.9.10; Plugin-sona-xx-plugin-2.0.7.3119; Gotlab16.3 |
Hi @vscodeenv, I would start with turning debug info on and than look into the .LOG file. How to interpret the result is described here: Regards, |
Thanks for your reminding. I saw this in the output. After changing the path, it seems that misra's rules are violated in sonarqube |
cppcheck checks the code using misra rules; The generated xml file; sonar reads xml files; But there is no corresponding misra warning
The text was updated successfully, but these errors were encountered: