We have 21 folders under one repo which is imported as project on sonar but all the folders inside that project are not getting analyzed as some are getting skipped by itself. We have tried with and without inclusion & exclusion also but nothing helped. Also we are creating a mono repo for particular folder and scanning it is getting analyzed.
We wanted to know is there any folder limitation in sonar for a project?
This is the error in the logs
9946 non excluded files in this Git repository
2024-09-27T09:28:03.9229061Z 09:28:03.899 DEBUG: File ‘D:\a\1\s\SolutionLiveFrontDoorAPI_3.1\SolutionLiveFrontDoorAPI\Auth\IOAuth.cs’ is excluded by the scm ignore settings
With the SonarScanner for .NET, only those projects in the solution that are built are analyzed. In fact, the analysis happens during the build, which is why you have to bookend the build with start and end.
This is not the case for most other languages, but with .NET, you’re the lucky recipient of us being able to hook into the build for a deeper understanding of the code and more accurate issue detection.
So it’s likely that’s why you’re missing some directories.