fix remaining luacheck issues

This commit is contained in:
BuckarooBanzay
2020-06-02 08:03:57 +02:00
parent 448fe3ebf1
commit 82bff0c44a
2 changed files with 15 additions and 4 deletions

View File

@ -1,5 +1,4 @@
unused_args = false unused_args = false
allow_defined_top = true
read_globals = { read_globals = {
"DIR_DELIM", "DIR_DELIM",
@ -10,9 +9,21 @@ read_globals = {
"PseudoRandom", "ItemStack", "PseudoRandom", "ItemStack",
"AreaStore", "AreaStore",
"default", "default",
"factions",
table = { fields = { "copy", "getn" } } table = { fields = { "copy", "getn" } }
} }
globals = { globals = {
"minetest" "minetest",
-- mod namespace
"areas",
-- legacy
"IsPlayerNodeOwner",
"GetNodeOwnerName",
"HasOwner",
"owner_defs"
}
files["legacy.lua"] = {
ignore = {"512"}
} }