"Depth" of directories for analysis?

While running the analysis, SonarQube is only analysing the root folder for each project to scan for .cs files. For instance,

MyProject.Web
|–D1
|–D2 – F3.cs
|–D3 – F4.cs
F1.cs
F2.cs

After running SonarQube with this includion rule
sonar.inclusions =*.cs

only F1 and F2.cs files are analysed, FF3 and F4 are being ignored or passed over. Is there anything wrong with my inclusion rule ?

Hi,

Your inclusion is your problem. By default, analysis will check each directory, recursively, for files.

Ann

To complement @ganncamp answer, note that if this is .Net code then you should be using the Scanner for MSBuild. The latter is tightly integrated with your Visual Studio project definition, and files analyzed are closely tied to files declared/built in your solution. (I suggest studying the above doc and reviewing logs if you wish to understand more in depth)