"Number of line exceeded" even after increasing organization plan

  • ALM used: GitHub
  • CI system used: GitHub action
  • Scanner command used when applicable (private details masked): SonarSource/sonarqube-scan-action@v5
  • Languages of the repository: TypeScript

I’m trying to get a scan run on my main branch. Scans are running successfully against open PRs, but I still have a warning ("main” branch has not been analyzed yet). I have a GH Action to run upon merge to main. This completes successfully according to the log, but when I look at the main branch on sonarcloud.io, there is a red error badge “The last analysis has failed”.

Clicking the error opens a modal that says “Number of lines exceeded” and tells me to upgrade our organization plan. We were at our limit, and increased the plan a couple weeks ago, but the error persists.

analysis_id: ac94c705-31ce-4421-b0dc-9f51505d67a7

Hi,

Welcome to the community!

This sort of thing is unfortunately difficult to diagnose since analysis logs don’t tell you how many LOC were found in an analysis.

So let’s start with: by how much did you increase your license? And approximately how many LOC are you expecting to show up when you analyzed your main branch?

At a guess, you’ve accidentally included libraries or generated code in your analysis scope.

 
Ann

We bumped our plan again and that worked. Now that I have a completed scan on the dashboard, I can see you’re right it’s including a lot of generated code and test fixtures that I need to add to my ignore list. Thank you!

1 Like