SonarQube Java
  1. SonarQube Java
  2. SONARJAVA-133

Compute the new metric "complexity in methods"

    Details

    • Type: New Feature New Feature
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3
    • Component/s: Squid
    • Labels:
      None
    • Number of attachments :
      1

      Description

      This should validate https://jira.codehaus.org/browse/SONAR-3900.

      Evgeny, I let you reassign SONAR-3900 to Julien once you have validated that it works as expected, thanks.

        Issue Links

          Activity

          Hide
          Evgeny Mandrikov added a comment -

          SONARJAVA-133.zip can be used to verify this ticket : currently Sonar shows "complexity 5 / method", whereas should "complexity 3 / method".

          Show
          Evgeny Mandrikov added a comment - SONARJAVA-133.zip can be used to verify this ticket : currently Sonar shows "complexity 5 / method", whereas should "complexity 3 / method".
          Hide
          Evgeny Mandrikov added a comment -

          We are not going to compute metric "complexity in classes", because in Java, there is no way to have a code outside of classes, so it will always be equal to overall complexity.

          Show
          Evgeny Mandrikov added a comment - We are not going to compute metric "complexity in classes", because in Java, there is no way to have a code outside of classes, so it will always be equal to overall complexity.
          Hide
          Evgeny Mandrikov added a comment -

          Fabrice, I let you decide what to do with SONAR-3900, because indeed - with Java we able to verify only "complexity in methods", but not "complexity in classes". However I want to believe that they have same implementation, so if one works, then another also should work.

          Show
          Evgeny Mandrikov added a comment - Fabrice, I let you decide what to do with SONAR-3900 , because indeed - with Java we able to verify only "complexity in methods", but not "complexity in classes". However I want to believe that they have same implementation, so if one works, then another also should work.
          Hide
          Fabrice Bellingard added a comment -

          Perfect Evgeny!

          Show
          Fabrice Bellingard added a comment - Perfect Evgeny!
          Hide
          Evgeny Mandrikov added a comment -

          Integration tests were updated.

          Show
          Evgeny Mandrikov added a comment - Integration tests were updated.

            People

            • Assignee:
              Evgeny Mandrikov
              Reporter:
              Fabrice Bellingard
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: