Quenty / luacheck-roblox

Luacheck specifications for Roblox Lua
MIT License
36 stars 7 forks source link

'script' and 'game' globals do not account for indexing and calling methods on fields #1

Closed Nimblz closed 5 years ago

Nimblz commented 5 years ago
require(script.Parent.SomeModule)
require(script.SomeChildModule)
require(script.Parent:WaitForChild("SomeModule"))
local SomeInstance = game.Workspace.SomeInstance
local AnotherInstance = script.ChildInstance

These potentially valid pieces of code will raise warnings that they access undefined fields.

Nimblz commented 5 years ago

I've created a pull request that fixes this issue #2

Quenty commented 5 years ago

Closed by #2