Closed mehrdad89 closed 7 years ago
@mehrdad89 The problem seems to be general. It fails even if there's 'any statement' instead of the 'return statement'.
@rakhimov I kinda was hoping this is happening due to a minor case. I guess I should change the title of this issue too.
@mehrdad89 That would be great.
@mehrdad89 @terryyin I will be working on this bug over the weekend. The problem is that braceless control structures have the same nesting_level
metric. It seems 'nesting_level' metric for tokens is unnecessarily complicated or even probably a wrong approach with my implementation. This looks to be one of those times when I look at my own months-old code and wonder: "WTF?" :-)
Hmm, the nesting structure determination extension is running before the assignment of the nestring_level
to tokens. I thought it was the other way around.
Hi,
I am currently running NS metric on my repository and faced a bug return statement. The following unit test clarifies my claim:
commit: 23ec9e8e0091bf24a13d30b72fbe4df5b77b971a
Looking forward to hearing from you regarding this issue.