Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-3119

Improve detection of blocks of commented-out lines of code

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.13
    • Fix Version/s: 3.2
    • Component/s: Rules
    • Labels:
      None

      Description

      Current implementation detects 3 violations in code like

      /* for (Visitor visitor : visitors){ */
      /*  visitor.scan(line); */
      /*}*/
      

      and

      // for (Visitor visitor : visitors){
      //  visitor.scan(line);
      // }
      

      whereas in fact would be better to detect only 1.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              godin OLD - Evgeny Mandrikov
              Reporter:
              godin OLD - Evgeny Mandrikov
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: