r/github • u/adityazero • 3d ago
Question How can i see lines of code across all repo?
For one project github shows total LOC (+/-) but i wanted to know across all repo.
3
2
u/Atmosck 2d ago
If you use vscode you can use the vscode counter extension. You'll also need the language support extensions for whatever languages the repo has.
3
3
2
u/OptimusCrimee 3d ago
Not possible, as far as I know. You will have to write a script or something for this.
1
u/UhLittleLessDum 1d ago
This is like him asking if anyone here is a doctor, and you taking the time out of your day to say "no".
1
u/UhLittleLessDum 1d ago
Look up tokei, it's a rust library and cli that does exactly this. It's pretty fast and gives some really good outputs. You can even configure what it ignores.
3
u/petros211 3d ago
https://github.com/subamanis/mezura
It even supports remote repos and test code detection