-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.luacheckrc
60 lines (55 loc) · 990 Bytes
/
.luacheckrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
max_line_length = false
ignore = {
--setting a read-only field of a global variable
"122",
--unused globals
"131",
--setting and acessing undefined fields of global variables
"14.",
--unused variables and arguments
"21.",
--setting and never acessing variables
"23.",
--whitespace
"61."
}
read_globals = {
-- minetest
"minetest",
"dump", "dump2","vector",
"creative",
"ItemStack",
"PcgRandom","PseudoRandom",
"VoxelManip", "VoxelArea",
math = { fields = {"sign"} },
table = { fields = {"copy"} },
-- mod checks
"climate_api",
"cmi",
"default",
"farming",
"intllib",
"invisibility",
"lightning",
"lucky_block",
"mobs",
"sfinv_buttons",
"skylayer",
"stairsplus",
"tnt",
"toolranks",
"unified_inventory",
}
globals = {
--this should really be renamed to trinium_api
"api",
--other mods
"betterinv",
"journal",
"weather_mod",
}
allow_defined_top = true
exclude_files = {
-- bad syntax is tested here
"mods/modutil/LuaVenusCompiler/testout/",
}