terryyin / lizard

A simple code complexity analyser without caring about the C/C++ header files or Java imports, supports most of the popular languages.
Other
1.85k stars 250 forks source link

Incorrect Function Length Computation #91

Closed vsiddharth closed 8 years ago

vsiddharth commented 8 years ago

Currently: Function-Length = End_Marker - Begin_Marker

But the correct computation would be: Function-Length = End_Marker - Begin_Marker + 1

terryyin commented 8 years ago

You are right. This is fixed with NLOC but not LOC. Fixing...

terryyin commented 8 years ago

I've fixed it. Will group it will some other small fixes and create a new release this week.

terryyin commented 8 years ago

OK. It's now included in the latest release.