Add luacheck, and fix some of its warnings.

Don't tell me what to do!
This commit is contained in:
Treer 2020-01-31 20:41:35 +11:00
parent 3ac2dc689c
commit ed4143243e
2 changed files with 226 additions and 199 deletions

27
.luacheckrc Normal file
View File

@ -0,0 +1,27 @@
unused_args = false
allow_defined_top = true
globals = {
"cloudlands"
}
read_globals = {
"core",
"default",
"biomeinfo",
"schemlib",
"DIR_DELIM",
"intllib",
"ItemStack",
"math.hypot",
"minetest",
"PcgRandom",
"PseudoRandom",
table = { fields = { "copy", "getn" } },
"vector",
"file_exists",
"dump",
"VoxelArea",
"VoxelManip",
}

File diff suppressed because one or more lines are too long