I would like to purchase an enterprise license or higher, but I need to calculate the potential LOC

I would like to purchase an enterprise license or higher, but I need to calculate the potential LOC of my gitlab server (16.8) to understand exactly which subscription to buy.
I tried using the scc and cloc utilities for analysis, but they only work with loaded repositories, and on the server all bare repositories are inside .git and then in blobs. Because of this structure, these utilities do not allow you to collect LOC for all projects for a quality assessment.
The only thing I see is to pull each project in turn and collect LOC, but there are 600+ projects and this will take some effort

Maybe someone has already encountered a similar problem and has a solution?

Thank you in advance for your assistance!

Best regards,
Ivan

Hey Ivan.

We have some open source tooling to help users judge their Lines of Code. For example: GitHub - SonarSource/sonar-loc-count

And, if you’re interested in an Enterprise license, I highly suggest you get in touch so we can guide you!

Thanks for the answer.
While waiting for your answer, I made a Python script that is identical in functionality, only I collect the code quantities from the main\master branches, and then everything is summarized by languages ​​in a separate .csv

Maybe someone will find it useful in the future GitHub - casinoazino/Gitlab_LOC: Get LOC count from all your Gitlab projects

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.