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

Cannot ignore a function defined on a Lua class #336

Open DDevine opened 2 years ago

DDevine commented 2 years ago

The function is: image

As you can see I tried placing the pragma before, inline and inside the function.

The error I get is: light_driver/light_driver.lua:478: warning: Lighting has 86 NLOC, 27 CCN, 695 token, 0 PARAM, 106 length

I noticed it doesn't reference the actual function (which should be UpdateProperties) but rather references the class (Lighting). If I use a whitelizard.txt, I can't make that work either - except if I whitelist the entire class, but that is not a good solution for my codebase.