Add a Luacheck configuration file and tweak code style

This commit is contained in:
Hugo Locurcio
2019-02-20 23:56:20 +01:00
parent aa1b2f1b08
commit 74da77fb8c
4 changed files with 100 additions and 17 deletions

29
.luacheckrc Normal file
View File

@ -0,0 +1,29 @@
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",
}