add .luacheckrc and gh action

This commit is contained in:
BuckarooBanzay
2020-08-31 15:50:33 +02:00
parent 9fda51b650
commit 537e756091
6 changed files with 59 additions and 11 deletions

30
.luacheckrc Normal file
View File

@ -0,0 +1,30 @@
globals = {
"mesecon",
"minetest"
}
-- ignore unused vars
unused = false
read_globals = {
-- Stdlib
string = {fields = {"split"}},
table = {fields = {"copy", "getn"}},
-- Minetest
"vector", "ItemStack",
"dump", "VoxelArea",
-- system
"DIR_DELIM",
-- deps
"default", "screwdriver"
}
ignore = {
"631", -- line too long
"621", -- inconsistent indendation
"542", -- empty if branch
}