This repository has been archived by the owner on Jun 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.luacheckrc
104 lines (93 loc) · 1.84 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
-- luacheck: ignore
stds.roblox = {
globals = {
-- global functions
"script",
"warn",
"wait",
"spawn",
"delay",
"tick",
"UserSettings",
"settings",
"time",
"typeof",
"game",
"unpack",
"getfenv",
"setfenv",
"workspace",
"plugin",
-- types
"Axes",
"BrickColor",
"CFrame",
"Color3",
"ColorSequence",
"ColorSequenceKeypoint",
"Enum",
"Faces",
"Instance",
"NumberRange",
"NumberSequence",
"NumberSequenceKeypoint",
"PhysicalProperties",
"Ray",
"Random",
"Rect",
"Region3",
"Region3int16",
"TweenInfo",
"UDim",
"UDim2",
"Vector2",
"Vector3",
"Vector3int16",
"DockWidgetPluginGuiInfo",
-- libraries
"utf8",
math = {
fields = {
"clamp",
"sign",
"noise",
}
},
debug = {
fields = {
"profilebegin",
"profileend",
"traceback",
}
},
string = {
fields = {
"split"
}
}
}
}
stds.testez = {
read_globals = {
"describe",
"it", "itFOCUS", "itSKIP",
"FOCUS", "SKIP", "HACK_NO_XPCALL",
"expect",
}
}
ignore = {
"212", -- Unused argument.
"213", -- Unused loop variable.
"421", -- Shadowing a local variable.
"423", -- Shadowing a loop variable.
"431", -- Shadowing an upvalue.
"432", -- Shadowing an upvalue argument.
}
std = "lua51+roblox"
files["**/*.spec.lua"] = {
std = "+testez",
}
-- prevent max line lengths
max_code_line_length = false
max_string_line_length = false
max_comment_line_length = false