SonarQube
  1. SonarQube
  2. SONAR-2843

Depreciate the legacy CpdMapping and provide two new extension points to generate either a list of tokens or a list of statements from a source code

    Details

    • Type: New Feature New Feature
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: API, Duplications
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Providing a list of statements will be a bit more complex for a plugin but will lead to get less false-positives.

        Issue Links

          Activity

          Hide
          Evgeny Mandrikov added a comment -

          Note that BlockChunker (algorithm to build blocks) should not depend on StatementChunker and should work for any unit of source code for which we can determine hash and position, e.g. Token.

          Show
          Evgeny Mandrikov added a comment - Note that BlockChunker (algorithm to build blocks) should not depend on StatementChunker and should work for any unit of source code for which we can determine hash and position, e.g. Token.
          Hide
          Freddy Mallet added a comment -

          This new API should also allow to override the number of lines of code to take into account when building blocks.

          Show
          Freddy Mallet added a comment - This new API should also allow to override the number of lines of code to take into account when building blocks.
          Hide
          Fabrice Bellingard added a comment -

          What's the status on this? Do we still need this evolution on the SQ platform or what language plugin get is enough?

          Show
          Fabrice Bellingard added a comment - What's the status on this? Do we still need this evolution on the SQ platform or what language plugin get is enough?

            People

            • Assignee:
              Evgeny Mandrikov
              Reporter:
              Evgeny Mandrikov
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: