flosse / sloc

simple tool to count SLOC (source lines of code)
MIT License
943 stars 84 forks source link

Closing brackets/etc should not be counted as source code #28

Open stevenvachon opened 10 years ago

stevenvachon commented 10 years ago

For C-like languages (such as JavaScript), lines containing only a combination of white space, brackets, colons and/or semicolons—{,},[,],(,),({,}),([,]),};,];,);,});,]);,;,:,etc—should not be counted as source code.

flosse commented 10 years ago

Do you mind to write a patch? Otherwise you might have to wait a bit ;-)

stevenvachon commented 10 years ago

I can wait, I just thought it'd be worthwhile to tell you while I'd thought of it. I'm not against writing this, I just have many critical things to fix in other libs. If I do find time, I'll try to work on it, though.