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) :
(Highlighted code syntax)
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 !