Add a Luacheck configuration file

This commit is contained in:
Hugo Locurcio 2019-02-21 13:44:35 +01:00
parent 06a19573cc
commit d241818d13
No known key found for this signature in database
GPG Key ID: 39E8F8BE30B0A49C
2 changed files with 29 additions and 1 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",
},
},
}
}
globals = {
"vector",
}

View File

@ -54,4 +54,3 @@ if minetest.setting_getbool("health_bars") ~= false and
minetest.after(1, add_HP_gauge, player:get_player_name())
end)
end