mirror of
https://github.com/minetest-mods/mesecons.git
synced 2025-07-16 14:10:21 +02:00
add .luacheckrc
and gh action
This commit is contained in:
30
.luacheckrc
Normal file
30
.luacheckrc
Normal file
@ -0,0 +1,30 @@
|
||||
|
||||
globals = {
|
||||
"mesecon",
|
||||
"minetest"
|
||||
}
|
||||
|
||||
-- ignore unused vars
|
||||
unused = false
|
||||
|
||||
read_globals = {
|
||||
-- Stdlib
|
||||
string = {fields = {"split"}},
|
||||
table = {fields = {"copy", "getn"}},
|
||||
|
||||
-- Minetest
|
||||
"vector", "ItemStack",
|
||||
"dump", "VoxelArea",
|
||||
|
||||
-- system
|
||||
"DIR_DELIM",
|
||||
|
||||
-- deps
|
||||
"default", "screwdriver"
|
||||
}
|
||||
|
||||
ignore = {
|
||||
"631", -- line too long
|
||||
"621", -- inconsistent indendation
|
||||
"542", -- empty if branch
|
||||
}
|
Reference in New Issue
Block a user