You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
crabdancing
changed the title
luacheck does not warn about accessing nonexistent members of
luacheck does not warn about accessing nonexistent members of table
Oct 31, 2020
I don't think this is something luacheck is ever going to be able to check. You would have to execute the code in order to know for sure what was or wasn't in a Lua table. There is no way to know with any confidence from just lexing the language as you show. Also Lua has ways of handling this where calling non-existing methods can actually create/load them etc.
If you still feel this is something that needs more feedback please open a new issue on the new official repository here. In the mean time please consider closing this issue to help tidy up as there is nobody with permissions to do so—only issue authors can close their own.
I create code with the following contents:
Result:
The text was updated successfully, but these errors were encountered: