Add a Luacheck configuration file and tweak code style

This commit is contained in:
Hugo Locurcio
2019-02-20 23:47:35 +01:00
parent fe7d656235
commit 876630c70d
2 changed files with 49 additions and 8 deletions

30
.luacheckrc Normal file
View File

@ -0,0 +1,30 @@
std = "lua51+minetest"
unused_args = false
allow_defined_top = true
max_line_length = 90
stds.minetest = {
read_globals = {
"DIR_DELIM",
"minetest",
"core",
"dump",
"vector",
"nodeupdate",
"VoxelManip",
"VoxelArea",
"PseudoRandom",
"ItemStack",
"default",
table = {
fields = {
"copy",
},
},
}
}
read_globals = {
"intllib",
"mg",
}