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

Rule S6070: The regex escape sequence \cX should only be used with characters in the @-_ range

    Details

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

      Description

      Since escape sequences produce PlainCharacterTrees, the easiest way to implement it would be to visit all PlainCharacterTrees and check whether their .getText() matches the pattern "\\\\c[^@-_]".

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: