Sonar 2.12 in screenshots

by simon brandhof|

    The Sonar team is proud to announce the release of Sonar 2.12. This new version includes more than 100 improvements, bug-fixes and also some new features that we believe are worth stopping your daily work for a couple of minutes to check out: Support of Java 7, Integration of JaCoCo in the Sonar core, Hotspots 2.0 and Display groups of duplicated blocks.



    Hotspots 2.0


    3 new widgets have been created that enable to embed hot spots into a project dashboard: most violated rules, most violated resources and hot spots on a specific metric. We continue the "widgetisation" effort of of all Sonar UI components in order to sooner or later provide full customization capability of the Sonar UI.



    Support of Java 7 Syntax


    This was a great opportunity to collaborate with both Checkstyle and PMD teams in order to help them support all java 7 language changes : Strings in switch statements, try-with-resources statements, improved type inference for generic instance creation ("diamond"), simplified varargs method invocation, better integral literals, and improved exception handling (multi-catch).



    Integration of JaCoCo in the Sonar core


    JaCoCo is now part of Sonar core, along with Cobertura. This means that not only can the coverage by unit test be calculated by JaCoCo natively, but also that coverage by integration tests is now much better integrated. Results are displayed in the same page than coverage by unit tests :


    Note that Cobertura is still the default engine ... but that's just a matter of time to make Jacoco the default java code coverage engine. Just need more feedback from the community to make this switch.

    Improved Display of Duplication Blocks


    The 'Duplications' tab in the code viewer has been fully refactored to make it far more usable :

    • Duplication blocks are visually grouped in case of "truplications" or more
    • A code snippet is displayed by default on each group of duplicated blocks
    • Duplicated blocks on external files can be seen without leaving the page



    Don't forget that since Sonar 2.11, the default PMD CPD engine has been replaced by the Sonar CPD engine which brings a unique feature : ability to track duplications across projects.





    Project Events Management


    The events management has been greatly improved to make it easier to use from the History page introduced in Sonar 2.11.


    Time now to let you give a try to the version 2.12. Release notes are available in the download page. Reading the installation or upgrade guides is much recommended.