-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.luacheckrc
51 lines (48 loc) · 855 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
codes = true
std = "lua51"
jobs = 3
self = false
max_line_length = 80
max_cyclomatic_complexity = 10
read_globals = {
-- common lua globals
"loadlib",
"lfs",
"md5",
-- DCS specific globals
"net",
"atmosphere",
"country",
"env",
"Unit",
"Object",
"StaticObject",
"Group",
"coalition",
"world",
"timer",
"trigger",
"missionCommands",
"coord",
"land",
"SceneryObject",
"AI",
"Controller",
"radio",
"Weapon",
"Airbase",
-- DCT specific
"dct",
}
files["src/dct/settings.lua"] = { globals = {"dctserverconfig",} }
files["src/dct/Theater.lua"] = { globals = {"theatergoals", "dct"} }
files["src/dcttestlibs/dcsstubs.lua"] = {
globals = {"lfs"},
read_globals = {"socket",},
}
files["tests/test-0001-data.lua"] = {
globals = {"staticTemplate", "metadata",}
}
files["tests/*"] = {
globals = {"dctstubs", "dctcheck", "dct"},
}