-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.luacheckrc
49 lines (46 loc) · 1.22 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
std = "lua51"
max_line_length = false
exclude_files = {
".luacheckrc"
}
ignore = {
"11./SLASH_.*", -- Setting an undefined (Slash handler) global variable
"11./BINDING_.*", -- Setting an undefined (Keybinding header) global variable
"11./DBM_.*", -- Setting an undefined (DBM) global variable
-- "113/LE_.*", -- Accessing an undefined (Lua ENUM type) global variable
-- "113/NUM_LE_.*", -- Accessing an undefined (Lua ENUM type) global variable
"113/DBM_.*", -- Accessing an undefined (DBM) global variable
"211", -- Unused local variable
"211/L", -- Unused local variable "L"
"211/CL", -- Unused local variable "CL"
"212", -- Unused argument
"213", -- Unused loop variable
"231/_.*", -- unused variables starting with _
"311", -- Value assigned to a local variable is unused
-- "431", -- shadowing upvalue
"43.", -- Shadowing an upvalue, an upvalue argument, an upvalue loop variable.
"542", -- An empty if branch
}
globals = {
"_G",
"math",
"type",
"pairs",
"select",
"GetTime",
-- DBM
"DBM",
"DBM_DISABLE_ZONE_DETECTION",
"DBM_GUI",
-- WoW
"GameFontDisableSmall",
"GameFontHighlightSmall",
"GameFontNormalSmall",
"UIParent",
-- FrameXML
"CreateFrame",
"IsInInstance",
"GetLocale",
"UnitName",
"C_Map",
}