Uploaded image for project: 'SonarPHP'
  1. SonarPHP
  2. SONARPHP-584

Highlight variable complex (curly) syntax

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.10
    • Component/s: Plugin
    • Labels:
      None

      Description

      When highlighting a symbol, SonarQube API allows to define a symbol and its references.
      The symbol is defined with a start offset and an end offset, references of this symbol are defined with a start offset only and its size is assume to be the same as the declared symbol.
      So for now the following cases are not highlighted, and should be as soon as SonarQube API allows to defined a end offset for references (see the linked ticket).

      $bar = 1;
      
      echo "${bar}";  // "bar" should be highlighted
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              elena.vilchik Elena Vilchik
              Reporter:
              linda.martin Linda Martin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: