Add LuaCheck and GitHub workflow (#32)

This commit is contained in:
David Leal
2023-01-15 07:17:54 -06:00
committed by GitHub
parent f566d0ff26
commit 92a1e0cddb
2 changed files with 30 additions and 0 deletions

19
.luacheckrc Normal file
View File

@ -0,0 +1,19 @@
allow_defined_top = true
unused_args = false
max_line_length = false
read_globals = {
string = {fields = {"split", "trim"}},
table = {fields = {"copy", "getn"}},
"player_monoids",
"playerphysics",
"hb",
"vector",
"hunger_ng",
}
globals = {
"minetest",
"hbhunger"
}