The below source directory is not recognised by SonarQube Scanner. Remove the leading dot (.) then it works fine. However, the name .vuepress is required by the VuePress tool we used. sonar.sources=.vuepress
Other failed attempts I tried are sonar.sources=./.vuepress sonar.sources=\.vuepress sonar.sources=".vuepress"
I wonder if SonarQube could lift this rule about dot files, for reasons
SonarQubeâs contract (sonar.sources, sonar.exclusions) seems giving users full control of what source code to include and exclude. The fact that dot files are implicitly excluded comes as a surprise to users. Nor is it documented as far as I can tell.
dot file being âhiddenâ is a Unix-like file system convention, not Windows. SonarQube supports both platforms.
Please let me know if there are incentives/rationales behind excluding dot files.
I tend to agree with you, I think we should only exclude hidden folders, using OS definition of hidden. The problem is this is a very old code, and I wonder why it was added in the first place. I also care about the sudden change of behavior if we decided to finally let dot folders being analyzed on WindowsâŚ
Many thanks for the follow up from you and @dmeneses.
I fully understand introducing behavioral changes can break things. But, I think the risk for this case can be mitigated by the fact that users can still exclude those files explicitly if thatâs what they want. Thatâs of course assuming users do read the release notes .
Thanks for raising the ticket. I have added it to my watch list. Just an idea regarding excluding files - for git users, could the scanner honor .gitignore, which wouldâve included .sonar.?