Input data:
- ALM used: Azure DevOps
- CI system used: Azure DevOps Pipelines
- Languages of the repository: C#, TypeScript, JavaScript, CSS
- Steps to reproduce: whenever I start the new build process it fails when it comes to publishing a QualityGate result with the following error: "##[error][SQ] Task failed with status FAILED, Error message: This analysis will make your organization ‘xxx’ to reach the maximum allowed lines limit (having 300751 lines). "
My problem is that this number of lines of code is extremely far from reality. I measured the C# code with the command line tool available in GitHub (cloc) and the real numbers are the following:
Having this report in mind, I know there’s is a lot of ‘noise’ that I don’t even want to scan and we have enough capacity with our existing license. At the same time, how do I configure SonarCloud so we only scan the C# code, omitting everything else?
I have already configured the exclusions in the Source File Exclusions, but it doesn’t help to reduce the scanning scope significantly.