mirror of
https://github.com/Uberi/Minetest-WorldEdit.git
synced 2024-11-18 00:18:13 +01:00
Teach LuaCheck about vector.* fields
This commit is contained in:
parent
f8442ef9fd
commit
e20a5a4e09
14
.luacheckrc
14
.luacheckrc
@ -1,9 +1,17 @@
|
|||||||
read_globals = {"minetest", "vector", "VoxelArea", "ItemStack",
|
read_globals = {
|
||||||
"table",
|
"minetest", "VoxelArea", "ItemStack",
|
||||||
"unified_inventory", "sfinv", "smart_inventory", "inventory_plus",
|
"unified_inventory", "sfinv", "smart_inventory", "inventory_plus",
|
||||||
"dump"
|
"dump",
|
||||||
|
|
||||||
|
table = {fields = {"copy", "indexof", "insert_all"}},
|
||||||
|
vector = {fields = {
|
||||||
|
-- as of 5.0
|
||||||
|
"new", "direction", "distance", "length", "normalize", "floor", "round",
|
||||||
|
"apply", "equals", "sort", "add", "subtract", "multiply", "divide"
|
||||||
|
}},
|
||||||
}
|
}
|
||||||
globals = {"worldedit"}
|
globals = {"worldedit"}
|
||||||
|
|
||||||
-- Ignore these errors until someone decides to fix them
|
-- Ignore these errors until someone decides to fix them
|
||||||
ignore = {"212", "213", "411", "412", "421", "422", "431", "432", "631"}
|
ignore = {"212", "213", "411", "412", "421", "422", "431", "432", "631"}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user