1
0
mirror of https://github.com/Uberi/Minetest-WorldEdit.git synced 2025-07-14 13:50:21 +02:00
Files
Minetest-WorldEdit/.luacheckrc
HybridDog 0632f6b41b Remove unused variables and assignments
The removal of unused variables can improve the detection of mistakes with luacheck;
for example, it can detect if the wrong argument is passed to a function because of a copy-paste mistake.

Setting `src_data` and `dst_data` to `nil` in `worldedit.stack2`,
which might enable an earlier garbage collection,
looks like an unneeded micro-optimisation.
2023-06-17 12:11:44 +02:00

8 lines
297 B
Lua

read_globals = {"minetest", "vector", "VoxelArea", "ItemStack",
"table",
"unified_inventory", "sfinv", "smart_inventory", "inventory_plus"
}
globals = {"worldedit"}
-- Ignore these errors until someone decides to fix them
ignore = {"212", "213", "411", "412", "421", "422", "431", "432", "631"}