MultiCraft_game/.luacheckrc

53 lines
1.1 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 = {
"122", -- setting a read-only field of a global variable
"431", -- shadowing an upvalue
"432", -- shadowing an upvalue argument
"542", -- empty if branch
}
read_globals = {
"DIR_DELIM",
"PLATFORM",
"minetest",
2021-03-06 00:28:03 -08:00
"intllib",
"hud",
"Sl",
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",
"Settings",
"unpack",
"creative",
"experience",
"mobs",
"playerphysics",
"screwdriver",
2021-04-05 02:29:16 -07:00
"bonemeal",
2020-08-08 13:19:27 -07:00
"sscsm",
2021-03-06 00:28:03 -08:00
"hunger",
"workbench",
2020-05-26 09:16:17 -07:00
-- Silence errors about custom table methods.
table = { fields = { "copy", "indexof" } },
-- 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