123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- 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",
- "VoxelManip",
- "profiler",
- "Settings",
- "PerlinNoise", "PerlinNoiseMap",
- string = {fields = {"split", "trim"}},
- table = {fields = {"copy", "getn", "indexof", "keyof", "insert_all"}},
- math = {fields = {"hypot", "round"}},
- }
- globals = {
- "core",
- "gamedata",
- os = { fields = { "tempfolder" } },
- "_",
- }
- files["builtin/client/register.lua"] = {
- globals = {
- debug = {fields={"getinfo"}},
- }
- }
- files["builtin/common/math.lua"] = {
- globals = {
- "math",
- },
- }
- 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", "math" },
- }
- 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",
- },
- }
- files["builtin/common/tests"] = {
- read_globals = {
- "describe",
- "it",
- "assert",
- },
- }
|