petdance / altbox

Website for altbox.dev, the alternative toolbox for developers
https://altbox.dev/
47 stars 1 forks source link

Tools to count lines of code #40

Open boyter opened 5 years ago

boyter commented 5 years ago

Not quite sure if code counting tools fall into this bucket of comparable to wc, but I suspect many have chained grep with wc to get estimates of codebase size, so not sure where else they would go.

https://github.com/AlDanial/cloc/ (the OG) https://dwheeler.com/sloccount/ https://github.com/XAMPPRocky/tokei/ https://github.com/boyter/scc/ https://github.com/cgag/loc/ https://github.com/hhatto/gocloc/ https://github.com/vmchale/polyglot/

petdance commented 5 years ago

Holy cats, that's a lotta code. Thank you. I'll have to sift through all those.

boyter commented 5 years ago

I should mention I wrote one of them scc and keep a close eye on what they all do for that reason. If you need any help with them let me know happy to lend some time.

NHOrus commented 5 years ago

http://www.catb.org/esr/loccount/ also one to join the list.

boyter commented 5 years ago

@NHOrus now that is one I was not aware of. I will add it to the comparisons I do with scc once I get it to compile.

NHOrus commented 5 years ago

Well, it converged to some similar design elements with your tool. See https://gitlab.com/esr/loccount/blob/master/traits.json http://esr.ibiblio.org/?p=8270

petdance commented 5 years ago

I love that the two of you have come together in my issues queue to discuss this stuff. <3 open source.

boyter commented 5 years ago

Sorry about the spam you are getting from it :)

But yes I love the cross collaboration you get from these discussions as well.