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

Stop excluding directories starting with a dot on Windows

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.6
    • Component/s: Scanner
    • Labels:
      None
    • Edition:
      Community
    • Production Notes:
      None

      Description

      A long time ago, we decided to exclude all folders starting with dot in all platforms as an easy solution to avoid analyzing the content of the generated .sonar folder.
      On Linux, it works well because this strategy effectively excludes all hidden files, since on Linux filesystems a file is excluded if its name starts with a dot.

      However, that's not the case on Windows. On Windows, files with a name starting with a dot are not necessarily hidden. Users reported their files being excluded because of its name, even though they are not hidden:
      https://community.sonarsource.com/t/source-directory-name-staring-with-a-dot-not-recognised/5065

      The solution is:

      1. Set only the folder .sonar as hidden on Windows (on Linux its name already makes it hidden).
      2. During the analysis ignore all hidden files

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              duarte.meneses Duarte Meneses
              Reporter:
              julien.henry Julien Henry
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: