mirror of
https://github.com/minetest-mods/technic.git
synced 2024-11-13 05:50:41 +01:00
initial tuned-down luacheck
This commit is contained in:
parent
a92e94d27b
commit
a375c89619
38
.luacheckrc
Normal file
38
.luacheckrc
Normal file
|
@ -0,0 +1,38 @@
|
|||
unused_args = false
|
||||
|
||||
-- https://luacheck.readthedocs.io/en/stable/warnings.html
|
||||
ignore = {
|
||||
"611", --whitespace
|
||||
"631", -- line too long
|
||||
"211", -- unused local
|
||||
"311", -- Value assigned to a local variable is unused.
|
||||
"113", -- undefined
|
||||
"121" -- read only global
|
||||
}
|
||||
|
||||
globals = {
|
||||
"technic",
|
||||
"technic_cnc",
|
||||
"wrench"
|
||||
}
|
||||
|
||||
read_globals = {
|
||||
-- Stdlib
|
||||
string = {fields = {"split"}},
|
||||
table = {fields = {"copy", "getn"}},
|
||||
|
||||
-- Minetest
|
||||
"vector", "ItemStack",
|
||||
"dump", "VoxelArea",
|
||||
"minetest", "default",
|
||||
|
||||
-- deps
|
||||
"mesecon",
|
||||
"pipeworks",
|
||||
"monitoring",
|
||||
"intllib",
|
||||
"stairsplus",
|
||||
"unifieddyes",
|
||||
"digilines",
|
||||
"digiline_remote"
|
||||
}
|
Loading…
Reference in New Issue
Block a user