2019-08-06 20:30:18 +02:00
|
|
|
unused_args = false
|
|
|
|
allow_defined_top = true
|
|
|
|
|
|
|
|
ignore = {
|
|
|
|
"131", -- Unused global variable
|
|
|
|
"431", -- Shadowing an upvalue
|
|
|
|
"432", -- Shadowing an upvalue argument
|
|
|
|
}
|
|
|
|
|
|
|
|
read_globals = {
|
|
|
|
"ItemStack",
|
|
|
|
"INIT",
|
|
|
|
"DIR_DELIM",
|
|
|
|
"dump", "dump2",
|
|
|
|
"fgettext", "fgettext_ne",
|
|
|
|
"vector",
|
|
|
|
"VoxelArea",
|
|
|
|
"profiler",
|
|
|
|
"Settings",
|
|
|
|
|
2020-01-18 03:09:18 +01:00
|
|
|
string = {fields = {"split", "trim"}},
|
2019-08-06 20:30:18 +02:00
|
|
|
table = {fields = {"copy", "getn", "indexof", "insert_all"}},
|
2021-04-02 00:18:58 +02:00
|
|
|
math = {fields = {"hypot", "round"}},
|
2019-08-06 20:30:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
globals = {
|
|
|
|
"core",
|
|
|
|
"gamedata",
|
|
|
|
os = { fields = { "tempfolder" } },
|
|
|
|
"_",
|
|
|
|
}
|
|
|
|
|
|
|
|
files["builtin/client/register.lua"] = {
|
|
|
|
globals = {
|
|
|
|
debug = {fields={"getinfo"}},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
files["builtin/common/misc_helpers.lua"] = {
|
|
|
|
globals = {
|
|
|
|
"dump", "dump2", "table", "math", "string",
|
|
|
|
"fgettext", "fgettext_ne", "basic_dump", "game", -- ???
|
|
|
|
"file_exists", "get_last_folder", "cleanup_path", -- ???
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
files["builtin/common/vector.lua"] = {
|
|
|
|
globals = { "vector" },
|
|
|
|
}
|
|
|
|
|
|
|
|
files["builtin/game/voxelarea.lua"] = {
|
|
|
|
globals = { "VoxelArea" },
|
|
|
|
}
|
|
|
|
|
|
|
|
files["builtin/game/init.lua"] = {
|
|
|
|
globals = { "profiler" },
|
|
|
|
}
|
|
|
|
|
|
|
|
files["builtin/common/filterlist.lua"] = {
|
|
|
|
globals = {
|
|
|
|
"filterlist",
|
|
|
|
"compare_worlds", "sort_worlds_alphabetic", "sort_mod_list", -- ???
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
files["builtin/mainmenu"] = {
|
|
|
|
globals = {
|
|
|
|
"gamedata",
|
|
|
|
},
|
|
|
|
|
|
|
|
read_globals = {
|
|
|
|
"PLATFORM",
|
2023-06-05 12:01:54 +02:00
|
|
|
"TOUCHSCREEN_GUI",
|
2019-08-06 20:30:18 +02:00
|
|
|
},
|
|
|
|
}
|
2020-08-29 00:14:19 +02:00
|
|
|
|
|
|
|
files["builtin/common/tests"] = {
|
|
|
|
read_globals = {
|
|
|
|
"describe",
|
|
|
|
"it",
|
|
|
|
"assert",
|
|
|
|
},
|
|
|
|
}
|