Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: CLIRR-0.2
    • Component/s: Clirr
    • Labels:
      None

      Description

      It would be nice to have a plugin which measures the number of API break violations per version.

      For example, there is the maven-clirr-plugin which let's the build fail if an API breakage is detected. However, for non-API projects which are not forced to stay backward compatible, these metrics still have value as they show the stability of interfaces over time.

      1. sonar-clirr-apibreaks-dashboard.png
        1 kB
      2. sonar-clirr-violations-sourceview.png
        18 kB

        Activity

        Hide
        freddy.mallet Freddy Mallet added a comment -

        Sounds like a good idea Mike. What would be great is to be able to define a reference version in the Sonar interface for each project and the Sonar plugin should be able to compare the current version API with the reference one. All the violations could be inserted in Sonar and even associated to classes ?

        Do you know the output format of Clirr tool ?

        Show
        freddy.mallet Freddy Mallet added a comment - Sounds like a good idea Mike. What would be great is to be able to define a reference version in the Sonar interface for each project and the Sonar plugin should be able to compare the current version API with the reference one. All the violations could be inserted in Sonar and even associated to classes ? Do you know the output format of Clirr tool ?
        Hide
        mhaller Mike R. Haller added a comment -

        Attached:
        1) Sources of the Clirr plugin for Sonar
        2) The binary. Put in %SONAR_HOME%/extensions/plugins/ and restart
        3) Screenshot of dashboard

        Show
        mhaller Mike R. Haller added a comment - Attached: 1) Sources of the Clirr plugin for Sonar 2) The binary. Put in %SONAR_HOME%/extensions/plugins/ and restart 3) Screenshot of dashboard
        Hide
        mhaller Mike R. Haller added a comment -

        1) Screenshot of configuration
        2) Source view of violations.

        Show
        mhaller Mike R. Haller added a comment - 1) Screenshot of configuration 2) Source view of violations.
        Hide
        freddy.mallet Freddy Mallet added a comment -

        Whooo ...

        Mike, seems like we must give you rights on the Subversion repository. I'm going to do it tomorrow and keep you informed !

        Show
        freddy.mallet Freddy Mallet added a comment - Whooo ... Mike, seems like we must give you rights on the Subversion repository. I'm going to do it tomorrow and keep you informed !
        Hide
        mhaller Mike R. Haller added a comment -

        Quick update: plugin has been submitted to SVN and work is (slowly) in progress.
        Plugin homepage is http://docs.codehaus.org/display/SONAR/Sonar+Clirr+Plugin
        Tasks are: clean up, separation of binary vs. source incompatibility metrics, more exact location of violations (currently on class-level, i'd like to have in at least on method-level is possible)
        Current snapshot of plugin is deployed on a production Sonar installation and in beta-testing

        Show
        mhaller Mike R. Haller added a comment - Quick update: plugin has been submitted to SVN and work is (slowly) in progress. Plugin homepage is http://docs.codehaus.org/display/SONAR/Sonar+Clirr+Plugin Tasks are: clean up, separation of binary vs. source incompatibility metrics, more exact location of violations (currently on class-level, i'd like to have in at least on method-level is possible) Current snapshot of plugin is deployed on a production Sonar installation and in beta-testing
        Hide
        freddy.mallet Freddy Mallet added a comment -

        Mike, we'll do our best to include SONAR-810 in Sonar 1.10 (end of june).

        Show
        freddy.mallet Freddy Mallet added a comment - Mike, we'll do our best to include SONAR-810 in Sonar 1.10 (end of june).

          People

          • Assignee:
            simon.brandhof Simon Brandhof
            Reporter:
            mhaller Mike R. Haller
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: