MultiCraft_game/.luacheckrc

59 lines
1.2 KiB
Plaintext
Raw Normal View History

2020-05-26 09:16:17 -07:00
unused_args = true
allow_defined_top = true
2021-01-31 01:46:10 -08:00
max_line_length = 140
2020-05-26 09:16:17 -07:00
ignore = {
"431", -- shadowing an upvalue
"432", -- shadowing an upvalue argument
"542", -- empty if branch
}
2022-02-02 04:43:12 -08:00
globals = {
"minetest",
"areas",
"experience",
2022-05-30 07:15:23 -07:00
"invisibility",
2022-02-02 04:43:12 -08:00
"mobs",
"screwdriver",
"workbench",
"brewing",
}
2022-05-30 07:15:23 -07:00
2020-05-26 09:16:17 -07:00
read_globals = {
"DIR_DELIM",
"PLATFORM",
2022-08-03 17:07:35 -07:00
"climate_api",
2021-03-06 00:28:03 -08:00
"hud",
2022-02-02 04:43:12 -08:00
"hunger",
2020-05-26 09:16:17 -07:00
"dump",
"vector",
2021-01-31 01:54:52 -08:00
"utf8",
2020-05-26 09:16:17 -07:00
"VoxelManip", "VoxelArea",
"PseudoRandom", "PcgRandom",
"ItemStack",
"unpack",
"playerphysics",
2021-10-28 08:03:13 -07:00
"node_attacher",
2021-04-05 02:29:16 -07:00
"bonemeal",
2020-08-08 13:19:27 -07:00
"sscsm",
2021-09-17 01:33:25 -07:00
"hopper",
"workbench",
2022-02-02 04:43:12 -08:00
-- Silence errors about custom table and string methodss.
2021-12-31 03:40:34 -08:00
table = { fields = { "copy", "indexof", "insert_all" } },
2022-02-02 04:43:12 -08:00
string = { fields = { "split" } },
2020-05-26 09:16:17 -07:00
-- Silence warnings about accessing undefined fields of global 'math'
math = { fields = { "sign" } }
}
exclude_files = {
"files/deprecated/init.lua",
2020-05-26 09:16:17 -07:00
"files/mobs/mobs_redo/api.lua",
"files/workbench/init.lua",
2021-03-06 00:28:03 -08:00
"files/signs/slugify.lua"
2020-05-26 09:16:17 -07:00
}
files["files/bluestone/mesecons/actionqueue.lua"].unused = false
2021-03-06 00:28:03 -08:00
files["files/3d_armor/api.lua"].unused = false
2020-05-26 09:16:17 -07:00
files["files/carts/*.lua"].unused = false
files["files/player/playereffects/init.lua"].unused = false