altbox icon indicating copy to clipboard operation
altbox copied to clipboard

Tools to count lines of code

Open boyter opened this issue 6 years ago • 7 comments

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/

boyter avatar Apr 17 '19 02:04 boyter

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

petdance avatar Apr 17 '19 02:04 petdance

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.

boyter avatar Apr 17 '19 02:04 boyter

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

NHOrus avatar Apr 17 '19 03:04 NHOrus

@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.

boyter avatar Apr 17 '19 03:04 boyter

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

NHOrus avatar Apr 17 '19 04:04 NHOrus

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

petdance avatar Apr 17 '19 14:04 petdance

Sorry about the spam you are getting from it :)

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

boyter avatar Apr 17 '19 23:04 boyter