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

Misinterprets parameter default value as parameter identifier #290

Closed trouvant closed 4 years ago

trouvant commented 4 years ago

Analysis of a python file containing, for instance, the function

def test(lorem, ipsum = 14, dolor=None):
...

yields a FunctionInfo object with field parameters: ['lorem', '14', 'None'] rather than the expected parameters: ['lorem', 'ipsum', 'dolor']. This occurs across languages.

terryyin commented 4 years ago

I see. Trying to fix...

terryyin commented 4 years ago

OK. This is fixed. Thanks for reporting!