We are trying to run the standard analysis on our main branch, but the pipeline is currently failing due to a license limit error. However, the numbers in the error message are confusing and don’t match our billing dashboard.
The analysis fails with the following error details:
This analysis will make your organization ‘xxx’ reach the maximum allowed lines limit of 300000. Current LOC usage is: 0. LOC count in this analysis: 316000. Language distribution: css=200,docker=37,js=64,shell=6,ts=313600,web=426,xml=754,yaml=913 Please contact the administrator of the organization to resolve this issue.
However, when I check the Billing and Usage section in SonarQube Cloud, it shows completely different numbers:
Lines of code used 231.365k private lines of code analyzed within 1 projects
My Question:
-
Why does the error message state
Current LOC usage is: 0while the billing dashboard shows231.365k? -
Assuming these 316k lines actually exist in the current analysis scope, what is the best way to identify exactly where they are coming from? Is there a log or a debug output that shows which specific directories or files make up this large count (especially the TypeScript files), so we can verify this and adjust our
sonar.exclusionsif necessary?
Any help to understand this discrepancy and get our main branch analysis running again would be highly appreciated!