-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consistency check? physical = source + comment + empty? #90
Comments
Based on my repo, it looks like mixed lines get counted as comments and source code (which makes sense). But even when i account for that it doesn't match up exactly. |
Would you mind to write a testcase? |
FYI: #99 |
Figured it out from looking at source. The equation in the source is Empty lines in block comments contribute to the number of block comment lines and the number of empty lines (similar to how mixed works) so we need to add the number back on to stop them being counted twice. The output looked wrong because the formatter doesn't output the number of empty lines in block comments, but sloc was working fine. |
I wanted to make sure I wasn't losing my mind.
I wanted to confirm if the total physical lines of code should = source + comment + empty?
I am getting results where it does not. Does that mean something is wrong, or am I assuming something here?
Thanks!
The text was updated successfully, but these errors were encountered: