I’m trying to understand how SonarCloud charges for projects. Specifically, does SonarCloud charge based on the number of projects created on the platform or only when scans are performed?
For example, if I have a project with 20k lines of code (LOC) and I don’t scan it for two months, will I still incur charges? If so, isn’t it a bit unfair to be charged for inactive projects?
I’d appreciate it if someone could clarify how this works. Does anyone know of any workarounds to avoid charges for projects that aren’t actively scanned?
With the Team and Enterprise plans, you choose the maximum total number of lines of code (LOC) allowed in the organization’s private projects.
…
Lines of code are calculated by adding up the LOCs of each project analyzed. The LOCs that are counted are those found on the largest branch of the project. If you have set up branch analysis, the LOCs will be counted from the latest analysis of the project with the largest branch or PR.
So in this case:
Yes, those 20k Lines of Code will count towards your license utilization, even if the project is inactive.
You can always delete inactive projects to free up your license utilization. I think the alternative.