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
How would you imagine this working? What exactly would we even be looking for? I don't see how this would be remotely possible in the current architecture. It seems like could only be implemented by a Lua runtime and impossible to discern with any degree of meaningfulness from just a syntax parser / linter — but perhaps I'm missing what you expect.
With very basic data flow analysis reliability could be achieved at least for local functions which are only defined once (or where only one definition may reach a certain place), so something like the following could be warned about:
localfunctionf(a, b) ...endf(1)
but due to Lua's dynamic dispatch, a general solution is not possible
It would be nice to check argument count in function calls 😃
The text was updated successfully, but these errors were encountered: