Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upforeach and while are not counted as LLOC #63
Comments
This comment has been minimized.
This comment has been minimized.
Logical Lines of Code (LLOC) are the number of semicolon-terminated statements. This means that |
sebastianbergmann
closed this
Sep 2, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
gooh commentedSep 2, 2013
When running PHPLoc 2.0.0 on the following code
I get the following metrics
I get the same when using
while
instead offoreach
.The problem seems to be in line https://github.com/sebastianbergmann/phploc/blob/master/src/Analyser.php#L306:
So apparently you are only counting the statements when terminate with a semicolon. But since
while
andforeach
are both executable statements, they should be counted, shouldn't they?