SonarQube JavaScript
  1. SonarQube JavaScript
  2. SONARJS-207

Incorrect computation of metrics in case of anonymous functions on same line

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: 1.2
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      For example on my machine for:

      var anonFun1 = function() { }; var anonFun2 = function() { doSomething(); };
      

      number of statements - 2, whereas should be 3;
      number of functions - 1, whreas should be 2.

        Activity

        Hide
        Fabrice Bellingard added a comment -

        Manually tested.

        Show
        Fabrice Bellingard added a comment - Manually tested.
        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:
            Evgeny Mandrikov
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: