add .luacheckrc and fix common errors

This commit is contained in:
BuckarooBanzay
2019-10-11 08:12:18 +02:00
committed by SmallJoker
parent 39bd36cc17
commit 3136adbe00
2 changed files with 21 additions and 2 deletions

19
.luacheckrc Normal file
View File

@ -0,0 +1,19 @@
globals = {
"lightning"
}
read_globals = {
-- Stdlib
string = {fields = {"split"}},
table = {fields = {"copy", "getn"}},
"PcgRandom",
-- Minetest
"minetest",
"vector", "ItemStack",
"dump",
-- mods
"default", "fire"
}