Uploaded image for project: 'SonarJava'
  1. SonarJava
  2. SONARJAVA-1162

FP S1151 Fix false positive when trailing comment on case line.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.4
    • Component/s: Rules
    • Labels:
      None

      Description

      switch(a) {
        case 1: // this comment should not count as a line -> raise false positive.
          foo();
          foo();
          foo();
          foo();
          foo();
        case 2:
      }
      

        Attachments

          Activity

            People

            • Assignee:
              nicolas.peru Nicolas Peru
              Reporter:
              nicolas.peru Nicolas Peru
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: