sebastianbergmann / phploc

A tool for quickly measuring the size of a PHP project.
BSD 3-Clause "New" or "Revised" License
2.34k stars 167 forks source link

Better handling of LLOC outside functions or classes #196

Closed kubawerlos closed 5 years ago

kubawerlos commented 5 years ago

Fixes https://github.com/sebastianbergmann/phploc/issues/161

@sebastianbergmann can you confirm the tests are correct?

sebastianbergmann commented 5 years ago

Not sure what you mean. On Travis, the tests fail.

kubawerlos commented 5 years ago

I mean if the tests are what it suppose to be after fix?

stephanvierkant commented 5 years ago

I experienced the same problem. I can't find any code outside classes, but this is what 5.0 reported: Not in classes or functions 8371 (36.51%)

Just updated to dev-master and it reports:

Not in classes or functions -318 (-2.23%)

Not sure how I managed to get more code in classes than I have in total? ;)