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

FPs in S5852 when repetition overlaps with non-repetition part

    Details

    • Type: False-Positive
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.14
    • Component/s: Rules
    • Labels:

      Description

      The following regexes should not raise issues:

      str.matches("a*a?b*"); // Noncompliant - false positive :-(
      str.matches("a*(a?b)*"); // Noncompliant - false positive :-(
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sebastian.hungerecker Sebastian Hungerecker
                Reporter:
                sebastian.hungerecker Sebastian Hungerecker
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: