Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upClarify how Tokei counts blank lines inside comment blocks #498
Comments
|
What is the point of blank line inside of a comment? I believe it makes more sense to count these as blanks. |
|
Yep, I agree with you, but I was just looking at that from a |
|
Thank you for your issue! I can definitely see the of why one could see it as comments in this case. I haven't really given much thought on whether it should be one or the other. |
|
Thanks to you for accepting my issue! |
|
I would be hesitant about making an option, I want to keep the amount of bespoke behaviour flags to a minimum. I would prefer to change the implementation if I was going to make a change. |
|
I really think that current implementation makes more sense. When counting the number of comment lines, I will possibly like to know how much of the comments are meaningful. |
Tokeicounts blank lines inside comment blocks as blank lines. Wouldn't they be considered as comment lines?For example:
Tokeioutput:In this case,
Blanksshould be 0, whileComments6.Thanks in advance for your clarification! :)