-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.luacheckrc
119 lines (91 loc) · 1.85 KB
/
.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
-- Get rid of "unused argument self"-warnings
self = false
-- The unit tests can use busted
files["**/*_spec.lua"].std = "+busted"
files["**/tests/*_spec.lua"].std = "+busted"
max_line_length = 160
max_string_line_length = 250
max_comment_line_length = 320
exclude_files = { "tests_framework/*" }
read_globals = {
-- table
"table.unpack",
-- package
"package.searchers",
-- assert
"assert.is_true",
"assert.is_false",
"assert.equal",
"assert.not_nil",
"assert.is_nil",
-- yaci API
"newclass",
-- lightningmdb global object
"lightningmdb",
-- luajit API
"newproxy",
-- winapi module
"winapi",
-- command line arguments
"arg",
}
globals = {
"__api",
"__imc",
"__sec",
"__agents",
"__config",
"__routes",
"__args",
"__tmpdir",
-- agent or server version string
"__version",
-- agent ID (hash) string
"__aid",
-- group ID (hash) string
"__gid",
-- policy ID (hash) string
"__pid",
-- server connection properties
"__sconn",
-- logging global table
"__log",
-- monitoring global table
"__metric",
-- system variable
"__files",
-- mock variable to test modules
"__mock",
-- utils classes
"CSystemInfo",
"CFileReader",
"CReader",
-- correlator classes
"CEventEngine",
"CActionEngine",
"CActionsValidator",
"CCorrEngine",
"CBaseEngine",
-- uploader classes
"CUploaderResp",
-- wineventlog module aux class
"CModule",
"CWinEventLog",
-- responder template classes
"CActsEngine",
-- YARA classes
"CYaraModule",
"CDatabaseEngine",
-- lua 5.2 compat
"bit",
"loadstring",
"setfenv",
-- busted API
"context",
"describe",
"teardown",
"setup",
"it",
"test",
"before_each"
}