Reputation: 265
I have Sonar 4.5 running and Jenkins does execute an ANT task comprising org.sonar.ant.SonarTask Initially with the build-in Sonar rules quality profile "sonar way" everything was running perfectly well. After introducing my company's custom quality profile there are "0 issues in 322k lines of code". Of course I know from the code this is NOT true.
The output of the ant task looks OK. The sonar log file does not issue any errors/warnings. The import of the quality profile via the admin site did not raise any errors/warning and the new rules are also visible on the admin site.
Any ideas of how to proceed are welcome.
Upvotes: 1
Views: 552
Reputation: 31
There are 2 things that you can try:
1. sonar.profile= name_of_your_new_profile while running the analysis.
2. Associate the project to the new Profile by going to the dashboard and setting it under Project Configuration > Quality profiles > Select the new profile for the language that you are trying to analyse.
Upvotes: 2