1
0
mirror of https://github.com/Uberi/Minetest-WorldEdit.git synced 2025-07-16 06:40:22 +02:00
Commit Graph

3 Commits

Author SHA1 Message Date
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
79e5e64c44 luacheck: Reduce the number of ignored codes
After the recent changes, luacheck can be configured to be more strict now, for example to check for inconsistent indentation and undefined variables.
2023-06-10 11:38:23 +02:00
eff01bc8e7 Add code linting with luacheck (#221)
With luacheck mistakes in Lua code can be found, e.g. the use of undefined variables, and the code style can be checked.
workflow by @Panquesito7
2023-06-09 19:48:46 +02:00