Sonarqube ignores important sub-directories of project (C#)

Thanks for the response! In the process of generating the verbose logs, I figured out the issue, which there were actually 2.
Also for background, the project was getting scanned, it just ignored the files I wanted scanned within the project. Sonarqube was reporting the entire project as having 411 lines of code… (2.5 million in reality).

The first issue revealed by verbose option was that it didn’t like the encoding the files so it skipped them (still not sure what the difference was), this post helped me resolve that issue.

The next issue was that Sonarqube reported each of the files as auto-generated and therefore skipped by default. I suspect a company comment at the top of each file was causing the false detection. I found the C# setting to disable skipping auto-generated files and I got the scans I wanted.

Thanks!

1 Like