Count lines of code

Martin

Active member
CX Code Contributor
3rd Party Module Dev
Tutorial Author
Joined
Jun 19, 2017
Messages
334
I don't know if that is of any use but counting lines of code and calculate the complexity of code plus costs is some quite interesting topic for statistics.

There is a great tool out there called scc: https://github.com/boyter/scc
It's written in go and supports a lot of language. I just added Cerberus-X as a new language.

If you want to compile it by yourself, use this languages.json file: https://www.leidel.net/dl/scc/languages.json
If you trust me you can use this already compiled executable: https://www.leidel.net/dl/scc/scc.zip

Just put it to the root of your project, enter a command shell and start it there. Here's an example for mojo2/bouncyaliens with a compiled glfw target below which is why you see some c stuff as well:

scc.png
 

Martin

Active member
CX Code Contributor
3rd Party Module Dev
Tutorial Author
Joined
Jun 19, 2017
Messages
334
I just see this would probably fit better in the Tools subforum?
 
Top Bottom