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: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      • Title
        Avoid unused variables
      • Description
      <p>
      When a variable is declared but never used this definitely decreases the readability of the source code and such dead declarations can even be misleading.
      </p>
      
      <p>
      The following code snippet illustrates this rule :
      <p>
      <pre>
      function fun(a, b) {
        var c = 2;   //Non-Compliant
        return a + b;
      }
      
      test(1, 2);
      </pre>
      
      • Violation message
        Remove the declaration of the unused 'xxxx' variable
      • Default severity
        Major

      Part of the Sonar way quality profile

      Origin : JSHint

        Issue Links

          Activity

          Hide
          Evgeny Mandrikov added a comment -

          Integration tests were updated.

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

          Manually tested !

          Show
          Freddy Mallet added a comment - Manually tested !

            People

            • Assignee:
              Evgeny Mandrikov
              Reporter:
              Freddy Mallet
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: