mesecons/.luacheckrc

60 lines
1.1 KiB
Plaintext
Raw Normal View History

std = "lua51c"
ignore = {
"21/_+", -- Unused variable, except "_", "__", etc.
"213", -- Unused loop variable
"421", -- Shadowing a local variable
"422", -- Shadowing an argument
"423", -- Shadowing a loop variable
"431", -- Shadowing an upvalue
"432", -- Shadowing an upvalue argument
"433", -- Shadowing an upvalue loop variable
"542", -- Empty if branch
}
max_line_length = 200
read_globals = {
"default",
"digiline",
"doors",
"dump",
"jit",
"minetest",
"screwdriver",
"string.split",
"table.copy",
"table.insert_all",
"vector",
"VoxelArea",
}
globals = {"mesecon"}
files["mesecons/actionqueue.lua"] = {
globals = {"minetest.registered_globalsteps"},
}
2022-03-30 00:57:30 +02:00
2022-05-31 21:49:17 +02:00
-- Test-specific stuff follows.
local test_conf = {
2022-04-14 23:42:24 +02:00
read_globals = {
"assert",
"fixture",
"mineunit",
"Player",
"sourcefile",
"world",
},
2022-03-30 00:57:30 +02:00
}
2022-05-31 21:49:17 +02:00
files["*/spec/*.lua"] = test_conf
files["test_fixtures/*.lua"] = test_conf
2022-03-30 00:57:30 +02:00
2022-05-31 21:49:17 +02:00
files["test_fixtures/screwdriver.lua"] = {
2022-04-14 18:36:45 +02:00
globals = {"screwdriver"},
}
2022-05-31 21:49:17 +02:00
files["test_fixtures/mesecons_fpga.lua"] = {
2022-04-14 18:33:59 +02:00
globals = {"minetest.register_on_player_receive_fields"},
}