Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-10648

CPD exclusions are not properly applied with SonarC#

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.4
    • Fix Version/s: 6.7.4, 7.2
    • Component/s: Scanner
    • Labels:
      None

      Description

      For a global Sensor, InputFile::relativePath is supposed to return the relative path of a file, relative to the project baseDir.
      This is broken, and it still returns the module relative path.

      This can have a lot of consequences, but one example is that CPD exclusions are not properly applied when CPD tokens are saved from a global Sensor (like for SonarC#).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                julien.henry Julien Henry
                Reporter:
                julien.henry Julien Henry
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: