minetest_game/.luacheckrc

28 lines
703 B
Plaintext
Raw Normal View History

unused_args = false
allow_defined_top = true
read_globals = {
"DIR_DELIM",
2019-12-29 03:28:30 -08:00
"minetest",
"dump",
"vector",
"VoxelManip", "VoxelArea",
2017-10-27 04:34:41 -07:00
"PseudoRandom", "PcgRandom",
"ItemStack",
"Settings",
"unpack",
2017-10-27 04:34:41 -07:00
-- Silence errors about custom table methods.
table = { fields = { "copy", "indexof" } },
-- Silence warnings about accessing undefined fields of global 'math'
math = { fields = { "sign" } }
}
-- Overwrites minetest.handle_node_drops
files["mods/creative/init.lua"].globals = { "minetest" }
-- Overwrites minetest.calculate_knockback
files["mods/player_api/api.lua"].globals = { "minetest" }
-- Don't report on legacy definitions of globals.
files["mods/default/legacy.lua"].global = false