Originally Posted by
MostTornBrain
With luacheck, how does one prevent the warnings about "setting non-standard global variable" for every FGU function override defined? Do I need to add each one to the globals list in the .luacheckrc file?
Examples are onClickDown(), sourceupdate(), onSourceUpdate(), and onFirstLayout(). They all get flagged as non-standard global variable definitions by luacheck. I was assuming I need to make these global to override the existing functions for the same windowclass. Should I actually declare them local?
What's the actual scope of scripts that override/merge with an existing windowsclass or are loaded via tags in the XML? Are they really global, or is there some implied scope/block boundary created by the windowclass that includes them and its a limitation that luacheck can't detect the implied scope because that's way out of context of how the tool operates? Not sure if that is really a lua question or more of a question about an implementation detail with how FGU integrates lua and provides support for extensions.
Thanks for any clarification,
Brian