Reached maximum allowed lines limit error with incorrect amount

Hello Sonar team,

We are using SonarCloud for our software analysis. It is set up via Azure Devops with CI within our pipeline.
Last week we started getting error:

"##[error]Task failed with status FAILED, Error message: This analysis will make your organization ‘aaa’ to reach the maximum allowed lines limit (having 100033 lines). "

While our billing page is saying the following: 67k LOC from 1 project source.

Also checked within the project > branches > measures page, and the largest branch there has 76k lines.

Our limit we pay for is 100k LOC so it’s strange to me that we are getting this error at this moment. Please advise on this matter how to resolve the error.

Thanks,

Maries

Hi Maries,

The message is telling you that if the server accepted the analysis report, it would push you over your license limit. I.E. the project you’re trying to analyze contains 100,033 lines of code, and that alone (much less any other project you may already have under analysis.)

If you’re surprised by that LOC count for the project in question, then you should take a closer look at analysis scope to make sure that sonar.sources doesn’t encompass more than you intend, and that libraries are excluded from analysis.

 
HTH,
Ann