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

Multiple successive and identical lines should not be detected as being part of a duplication

    XMLWordPrintable

    Details

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

      Description

      Here are few examples where a duplication is unexpectedly found :

      Properties props = new Properties();
      props.setProperties("something", "somethingElse");
      props.setProperties("something", "somethingElse");
      props.setProperties("something", "somethingElse");
      props.setProperties("something", "somethingElse");
      props.setProperties("something", "somethingElse");
      props.setProperties("something", "somethingElse");
      props.setProperties("something", "somethingElse");
      props.setProperties("something", "somethingElse");
      props.setProperties("something", "somethingElse");
      ...
      
      StringBuilder builder = new StringBuilder();
      builder.append("toto");
      builder.append("My friends are so depressed");
      builder.append("I feel the question");
      builder.append("Of your loneliness");
      builder.append("Confide..., 'cause I'll be on your side");
      builder.append("You know I will, you know I will");
      
      builder.append("X Girlfriend called me up");
      builder.append("Alone and desperate");
      builder.append("On the prison phone");
      builder.append("They want... to give her 7 years");
      builder.append("For being sad");
      ...
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              godin OLD - Evgeny Mandrikov
              Reporter:
              freddy.mallet Freddy Mallet (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: