Sonar 1.12 in screenshots
Here comes the 8th and last major Sonar release of the year. Like for all previous releases, this post is a summary of the new features through screenshots :
Users, groups and project roles
One of the most voted feature in JIRA is the ability to manage credentials at project-level. Sonar now embarks a complete user management mechanism to secure any Sonar instances by defining who can access and administer each project. User management is both simple and flexible : add new users, group them and associate them project roles : Administrator, User or Source code viewer.



Highlighted code syntax
Because code is not just a bunch of plain black text, it becomes pleasant to read it and it’s now much easier to eradicate commented-out lines of code (see line 97) :

Ignore violations with the new ‘//NOSONAR’ comment
The NOSONAR tag tells Sonar to ignore all violations on a specific line whatever rule engines are being used to scan code. Of course, Sonar is still able to manage widely used //NOPMD and //CHECKSTYLE:OFF … ON. We have simply added a native way to manage false positives. This feature is a real improvement for users that have activated Findbugs rules as there was no clean way to tag a Findbugs as a false positive : there is now ‘//NOSONAR’.

Better source viewer
As surprising as it can be, the full package name was not displayed in previous versions : it is fixed now. Moreover the number of public APIs is added to the header. In Sonar, a public API is either a non empty public constructor or a public method that is not an accessor and does not starts with the ‘@Override’ annotation.

Quickly get the key of the rule that has been violated and click to get the full description :

Highlight ratio of duplicated lines with treemaps
Treemap color is now red when 50% of lines of code are duplicated. It was 100% in previous versions.

You can read the release notes to find out more on the 62 issues that are being fixed in the release… or you might want to give it a go right now !


These changes are excellent.
However, since upgrading all my Maven builds are failing. It can’t seem to find the right version of the sonar plugin:
org.codehaus.sonar.runtime:sonar-core-maven-plugin:pom:20091209100139
The most recent version I can find is:
org.codehaus.sonar.runtime:sonar-core-maven-plugin:pom:20091208083852
Has the most recent plugin been released? I tried this yesterday and it was failing due to an older version (20091207….).
By Stuart on December 9, 2009 at 12:04 pm
Quick follow-up… it has now found the correct plugin. I’m guessing the updated plugin was just released now.
By Stuart on December 9, 2009 at 1:04 pm
Excellent job guys. I’ve recently installed Sonar for a large corporate client and this user management feature was for them an absolute necessity. It came up just at the right time!
NOSONAR and syntax highlighting are also very nice additions. I have just one complain: the treemap on project dashboard is gone! I thought it was a pretty neat way to drill-down into modules and packages of a project… anyway, good stuff!
By Marc-André on January 11, 2010 at 10:12 pm