1
0
mirror of https://github.com/mt-mods/hangglider.git synced 2025-06-28 14:36:24 +02:00

add luacheck and fix common errors

also fixes https://github.com/pandorabox-io/pandorabox.io/issues/493
This commit is contained in:
BuckarooBanzay
2020-04-27 10:44:56 +02:00
parent e2d8721a52
commit c01518913b
3 changed files with 57 additions and 16 deletions

21
.luacheckrc Normal file
View File

@ -0,0 +1,21 @@
globals = {
"hangglider",
"areas"
}
read_globals = {
-- Stdlib
string = {fields = {"split", "trim"}},
table = {fields = {"copy", "getn"}},
-- Minetest
"minetest",
"vector", "ItemStack",
"dump", "dump2",
"VoxelArea",
-- deps
"wardzones",
"minetestd",
"player_monoids"
}