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

AbstractRegexCheck should target more regex providers

    XMLWordPrintable

    Details

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

      Description

      All our rules targeting REGEX are relying on the AbstractRegexCheck class, which defines the entry points for the rules to report issues. When implementing this first batch of rules we only defined a few methods to be targeted.

      We should now extend this list with the following:

      • java.lang.String.split
      • javax.validation.constraints.Pattern
      • javax.validation.constraints.Email
      • org.hibernate.validator.constraints.URL
      • org.apache.commons.lang3.RegExUtils (all the methods taking a regexp as parameter)

        Attachments

          Activity

            People

            Assignee:
            alban.auzeill Alban Auzeill
            Reporter:
            michael.gumowski Michael Gumowski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: