I have a folder with a C# solution in it, with multiple projects in subfolders. Some of the subfolders have their own git repo associated with them, so there’s a .git folder in those subfolders. For some reason, those subfolders seem to be omitted during analysis.
thanks @stefanloerwald for opening this topic on the community forum!
Could you please give us the verbose output of the END step (please run SonarScanner.MSBuild.exe begin /k:"MyProject" /d:sonar.verbose=true as the BEGIN step, and please attach the output of END step) ? It will help us narrow down the problem.
After I talked with some colleagues, it seems this is the default behavior of the sonar-scm-git plugin, which is enabled by default. Please read the Docs.
sonar.scm.exclusions.disabled For supported engines, files ignored by the SCM, i.e. files listed in .gitignore , will automatically be ignored by analysis too. Set this property to true to disable that feature.
thanks for your reply. I find that default behavior quite strange, as it happens silently and from the report in SonarQube, there’s no indication why. I suggest adding a warning in the UI with the hint towards the setting.