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:
The solution is:
- Set only the folder .sonar as hidden on Windows (on Linux its name already makes it hidden).
- During the analysis ignore all hidden files