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

Nesting Depth #101

Closed mehrdad89 closed 8 years ago

mehrdad89 commented 8 years ago

Introducing Maximum Nesting Depth for Clike and Python languages, which detects the maximum 'nestedness' (nesting for-loops, if-statements, etc.) in any source code without caring about the C/C++ header files or Python imports.

rakhimov commented 8 years ago

@mehrdad89, thanks for putting work on #69. I am interested in this metric and test running your implementation. I am curious why the default nesting depth number is 7. It seems too high. I think 3 would be more reasonable.

mehrdad89 commented 8 years ago

No reason, I thought it would be a little too demanding especially if you are writing a complex function, but I think you're right. I will change it to 4 or maybe 5. and yes I will fix the r-Val ref bug cause I wrote that one before @terryyin fixed that issue.