SonarQube PHP
  1. SonarQube PHP
  2. SONARPHP-233

CPD should not count comments as duplicated tokens

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.3
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Activity

      Hide
      Frédéric Leroy added a comment -

      Basic implementation a PhpTokenizer which doesn't make difference between comment instruction and comment inside string. For example :
      1) /* this is a valid comment instruction */
      2) String s = "/* this is not a valid comment instruction */"

      Analyzer could be improve to detect this case

      Show
      Frédéric Leroy added a comment - Basic implementation a PhpTokenizer which doesn't make difference between comment instruction and comment inside string. For example : 1) /* this is a valid comment instruction */ 2) String s = "/* this is not a valid comment instruction */" Analyzer could be improve to detect this case

        People

        • Assignee:
          Frédéric Leroy
          Reporter:
          Olivier Gaudin
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: