Issue with Lines of Code Not Reflecting Correctly

Hi Team,

I am writing to bring to your attention an issue I am experiencing with our SonarQube instance. Despite removing almost 3 million lines of code from our projects, the total number of lines analyzed has not decreased accordingly. As shown in the attached screenshot, it still indicates that we have reached 9.9 million lines.

Could you please advise if there are any other options or steps, we can take to accurately reflect the current number of lines of code? This situation is quite concerning as we are nearing our limit.

Thanks,
Keerthana Paidi.

Hi Keerthana,

How did you remove the 3M lines? Did you delete whole projects?

What version and edition of SonarQube are you using?

Also, I don’t see a screenshot.

 
Thx,
Ann

I deleted both branches and projects.but still unable to see the change

Hi,

Deleting a branch from a project won’t move the needle. License LOC are calculated by summing the largest branch (or PR) from each project. So even deleting the largest branch from a project will only mean that now the next-largest is counted toward the license.

Your screenshot shows you’re on 9.9.6. Your version is past EOL. You should upgrade to either the latest version or the current LTA (long-term active version) at your earliest convenience. Your upgrade path is:

9.9.6 → 2025.1.1-> 2025.2 (last step optional)

You may find these resources helpful:

If you have questions about upgrading, feel free to open a new thread for that here.

Will the upgrade help with project deletion and license LOC reclamation? That’s not clear to me. My search of Jira didn’t turn up anything conclusive, but we’re not going to be able to help you debug this on an EOL version.

 
Ann