ff52420dd8
Put the name of the check in the "QA check ... started." and "QA check ... finished." Enable logging output to a file Add many configuration parameters to control various settings like logging to chat, logging to a file, and log file options Sort the outputs of several quality checks so that it can be easily compared with a previous check for regressions
26 lines
569 B
Lua
26 lines
569 B
Lua
-- Lists items which seem to be redundant
|
|
|
|
--[[ Comparing the second part of the mane ]]
|
|
|
|
local items = {}
|
|
|
|
local blacklist = {
|
|
dye = true,
|
|
walls = true,
|
|
xpanes = true,
|
|
wool = true,
|
|
}
|
|
|
|
for item, def in qa_block.pairsByKeys(minetest.registered_items) do
|
|
if item:find(':') then
|
|
local mod_name, item_name = unpack(item:split(':'))
|
|
if not blacklist[mod_name] and not def.groups.not_in_creative_inventory then
|
|
if not items[item_name] then
|
|
items[item_name] = item
|
|
else
|
|
print('Maybe redundant '..item_name, items[item_name], item)
|
|
end
|
|
end
|
|
end
|
|
end
|