Add core to the globals list in .luacheckrc

This commit is contained in:
2025-12-05 10:17:30 +01:00
parent e1cdc26a75
commit fa99e22c79

View File

@@ -3,7 +3,8 @@ allow_defined_top = true
exclude_files = {".luacheckrc"} exclude_files = {".luacheckrc"}
globals = { globals = {
"minetest", -- This is needed so running luacheck on a single file will recognize it
"stripped_tree",
} }
read_globals = { read_globals = {
@@ -11,7 +12,7 @@ read_globals = {
table = {fields = {"copy", "getn"}}, table = {fields = {"copy", "getn"}},
-- Builtin -- Builtin
"vector", "ItemStack", "minetest", "core", "vector", "ItemStack",
"dump", "DIR_DELIM", "VoxelArea", "Settings", "dump", "DIR_DELIM", "VoxelArea", "Settings",
-- MTG -- MTG