Add .luacheckrc

This commit is contained in:
Louis 2021-02-25 16:53:34 +01:00
parent f3c799b9b3
commit f1cfa9d7f3
2 changed files with 26 additions and 0 deletions

25
.luacheckrc Normal file
View File

@ -0,0 +1,25 @@
std = "lua51+minetest"
unused_args = false
allow_defined_top = true
max_line_length = 999
stds.minetest = {
read_globals = {
"minetest",
"VoxelManip",
"VoxelArea",
"PseudoRandom",
"ItemStack",
"default",
table = {
fields = {
"copy",
},
},
}
}
read_globals = {
"pipeworks",
}

View File

@ -1,4 +1,5 @@
function generate(size)
local cfg
if size == "small" then
cfg = {
window_width = 8,