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

S1659 should report only one issue per line

    XMLWordPrintable

    Details

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

      Description

      Currently, for the following code:

      int a = 0, b = 0, c = 0, d = 0;
      

      We will report 3 issues, on b, c and d.
      We should only report a single issue on b, with secondaries on c and d.

        Attachments

          Activity

            People

            Assignee:
            quentin.jaquier Quentin Jaquier
            Reporter:
            quentin.jaquier Quentin Jaquier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: