-
Notifications
You must be signed in to change notification settings - Fork 6
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
CppCheck result is not shown in Sonar #5
Comments
dump the analysis log to file and search for the cppcheck sensor and what report string is it take. also what is your sonar version? |
I use SonarQube 5.2 (fresh sandbox install yesterday with all latest versions)
|
exactly cxx plugin does not support 5.2, your best alternative is to try to ive tested and it works. however we might not even release it to 5.2 On Wed, 18 Nov 2015 at 12:11 alustrement [email protected] wrote:
|
Can you send me the jar file ? I don't have any java dev env and this will me do saving time. Thank you very much |
Sure On Wed, Nov 18, 2015, 14:52 alustrement [email protected] wrote:
|
no results in Sonar 5.2 or 5.1.2 with this jar. |
In 5.2 I sent you should take a look at the log and see what reports is he On Wed, Nov 18, 2015, 18:37 alustrement [email protected] wrote:
|
In the generated sonar-project.properties the path is ok (verified by copy/paste) :
but you're right there is sth wrong this it :
|
ok, i will fix it. for now you can just remove the entry On Thu, 19 Nov 2015 at 10:49 alustrement [email protected] wrote:
|
This works :
|
interesting, thought i add cover the *.xml. anyway. if you have it defined in you sonar-project.properties you can just leave it out. it will recreate it for you automatically |
i can reproduce this behaviour with the 5.2 version of the cxx plugin i set. 14:45:56.915 DEBUG - Using pattern 'D:\prod\structures\Core\Common.cxxresults\reports-cppcheck*.xml' to find reports was this error in with version |
same issue as here:SonarOpenCommunity/sonar-cxx#683 (comment) |
@alustrement the now the fix is merged in the sonar-cxx plugin. it should now work properly i will close this. please re-open if still a issue. download last version from: https://github.com/SonarOpenCommunity/sonar-cxx-msbuild-tasks/releases/tag/1.2.1-RC1 |
After a successfull analysis, cppcheck-result-0.xml contains this :
but no issue is raised in SonarQube. I confirm the "Division by zero" rule is activated.
The text was updated successfully, but these errors were encountered: