Uploaded image for project: 'SonarCFamily'
  1. SonarCFamily
  2. CPP-1360

Analysed files lookup should properly behave when using build-wrapper, symlinks and modules

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.10
    • Component/s: Sonar Plugin
    • Labels:
      None

      Description

      Currently:

      1. we get the list of files to be analysed through Filesystem.files(FilePredicate)
      2. we get the list of files from the build-wrapper-dump.json file
        If files from 2 appear in 1 then we analyse them.

      The problem comes from the fact that:

      • list 2 always contains canonical files.
      • list 1 not always contains canonical files.
        -> the lookup of files is missed when in list 1 we don't have canonical files.

      This behaviour was noticed on OS X when using a multi module project being in a symlinked structure.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              massimo.paladin Massimo PALADIN
              Reporter:
              massimo.paladin Massimo PALADIN
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: