Closed stzb321 closed 3 years ago
Here is example of code: a.lua
module("aModule" ,package.seeall) AMethod = function() print("AMethod") end
b.lua
aModule.AMethod()
.luacheckrc
std = "lua51" codes = true allow_defined_top = true
luacheck show accessing undefined variable warning when checking b.lua
accessing undefined variable
In a.lua, aModule already be defined as a global variable. Is the module function not supported in luacheck?
a.lua
aModule
module
close this issue after read #198
Here is example of code: a.lua
b.lua
.luacheckrc
luacheck show
accessing undefined variable
warning when checkingb.lua
In
a.lua
,aModule
already be defined as a global variable. Is themodule
function not supported in luacheck?